mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-05 16:38:32 +00:00
Update go-github library
This commit is contained in:
10
vendor/github.com/google/go-github/github/repos_invitations_test.go
generated
vendored
10
vendor/github.com/google/go-github/github/repos_invitations_test.go
generated
vendored
@@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
func TestRepositoriesService_ListInvitations(t *testing.T) {
|
||||
setup()
|
||||
client, mux, _, teardown := setup()
|
||||
defer teardown()
|
||||
|
||||
mux.HandleFunc("/repos/o/r/invitations", func(w http.ResponseWriter, r *http.Request) {
|
||||
@@ -30,14 +30,14 @@ func TestRepositoriesService_ListInvitations(t *testing.T) {
|
||||
t.Errorf("Repositories.ListInvitations returned error: %v", err)
|
||||
}
|
||||
|
||||
want := []*RepositoryInvitation{{ID: Int(1)}, {ID: Int(2)}}
|
||||
want := []*RepositoryInvitation{{ID: Int64(1)}, {ID: Int64(2)}}
|
||||
if !reflect.DeepEqual(got, want) {
|
||||
t.Errorf("Repositories.ListInvitations = %+v, want %+v", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRepositoriesService_DeleteInvitation(t *testing.T) {
|
||||
setup()
|
||||
client, mux, _, teardown := setup()
|
||||
defer teardown()
|
||||
|
||||
mux.HandleFunc("/repos/o/r/invitations/2", func(w http.ResponseWriter, r *http.Request) {
|
||||
@@ -53,7 +53,7 @@ func TestRepositoriesService_DeleteInvitation(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRepositoriesService_UpdateInvitation(t *testing.T) {
|
||||
setup()
|
||||
client, mux, _, teardown := setup()
|
||||
defer teardown()
|
||||
|
||||
mux.HandleFunc("/repos/o/r/invitations/2", func(w http.ResponseWriter, r *http.Request) {
|
||||
@@ -67,7 +67,7 @@ func TestRepositoriesService_UpdateInvitation(t *testing.T) {
|
||||
t.Errorf("Repositories.UpdateInvitation returned error: %v", err)
|
||||
}
|
||||
|
||||
want := &RepositoryInvitation{ID: Int(1)}
|
||||
want := &RepositoryInvitation{ID: Int64(1)}
|
||||
if !reflect.DeepEqual(got, want) {
|
||||
t.Errorf("Repositories.UpdateInvitation = %+v, want %+v", got, want)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user