mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-05 17:58:35 +00:00
Update to latest version of go-github (#157)
This commit is contained in:
committed by
Anubhav Mishra
parent
6abe46c529
commit
c777ba3067
11
vendor/github.com/google/go-github/github/issues_test.go
generated
vendored
11
vendor/github.com/google/go-github/github/issues_test.go
generated
vendored
@@ -275,3 +275,14 @@ func TestIssuesService_Unlock(t *testing.T) {
|
||||
t.Errorf("Issues.Unlock returned error: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestIsPullRequest(t *testing.T) {
|
||||
i := new(Issue)
|
||||
if i.IsPullRequest() == true {
|
||||
t.Errorf("expected i.IsPullRequest (%v) to return false, got true", i)
|
||||
}
|
||||
i.PullRequestLinks = &PullRequestLinks{URL: String("http://example.com")}
|
||||
if i.IsPullRequest() == false {
|
||||
t.Errorf("expected i.IsPullRequest (%v) to return true, got false", i)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user