Skip to content

Commit 8c7f0fb

Browse files
committed
Add unit tests for invalid cases
1 parent 1565a77 commit 8c7f0fb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

github/pulls_reviews_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ func TestPullRequestsService_ListReviews(t *testing.T) {
3737
}
3838
}
3939

40+
func TestPullRequestsService_ListReviews_invalidOwner(t *testing.T) {
41+
_, _, err := client.PullRequests.ListReviews("%", "r", 1)
42+
testURLParseError(t, err)
43+
}
44+
4045
func TestPullRequestsService_GetReview(t *testing.T) {
4146
setup()
4247
defer teardown()
@@ -58,6 +63,11 @@ func TestPullRequestsService_GetReview(t *testing.T) {
5863
}
5964
}
6065

66+
func TestPullRequestsService_GetReview_invalidOwner(t *testing.T) {
67+
_, _, err := client.PullRequests.GetReview("%", "r", 1, 1)
68+
testURLParseError(t, err)
69+
}
70+
6171
func TestPullRequestsService_ListReviewComments(t *testing.T) {
6272
setup()
6373
defer teardown()

0 commit comments

Comments
 (0)