mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
initial commit
This commit is contained in:
commit
18933c6767
1841 changed files with 810642 additions and 0 deletions
25
vendor/github.com/google/go-github/tests/integration/pulls_test.go
generated
vendored
Normal file
25
vendor/github.com/google/go-github/tests/integration/pulls_test.go
generated
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2014 The go-github AUTHORS. All rights reserved.
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build integration
|
||||
|
||||
package tests
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestPullRequests_ListCommits(t *testing.T) {
|
||||
commits, _, err := client.PullRequests.ListCommits("google", "go-github", 2, nil)
|
||||
if err != nil {
|
||||
t.Fatalf("PullRequests.ListCommits() returned error: %v", err)
|
||||
}
|
||||
|
||||
if got, want := len(commits), 3; got != want {
|
||||
t.Fatalf("PullRequests.ListCommits() returned %d commits, want %d", got, want)
|
||||
}
|
||||
|
||||
if got, want := *commits[0].Author.Login, "sqs"; got != want {
|
||||
t.Fatalf("PullRequests.ListCommits()[0].Author.Login returned %v, want %v", got, want)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue