Skip to content

Commit

Permalink
Fix code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kgromov committed Aug 31, 2023
1 parent 9e03957 commit 74f407a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
<exclude>org.kohsuke.github.GHCommitSearchBuilder</exclude>
<exclude>org.kohsuke.github.GHRepositorySearchBuilder</exclude>
<exclude>org.kohsuke.github.GHUserSearchBuilder</exclude>
<exclude>org.kohsuke.github.GHPullRequestSearchBuilder</exclude>

<!-- TODO: These still need test coverage -->
<exclude>org.kohsuke.github.GHBranchProtection.RequiredSignatures</exclude>
Expand Down
7 changes: 7 additions & 0 deletions src/test/java/org/kohsuke/github/EnumTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ public void touchEnums() {
assertThat(GHUserSearchBuilder.Sort.values().length, equalTo(3));

assertThat(GHIssueQueryBuilder.Sort.values().length, equalTo(3));

assertThat(GHPullRequestSearchBuilder.Sort.values().length, equalTo(4));
assertThat(GHPullRequestSearchBuilder.ReviewStatus.values().length, equalTo(4));
assertThat(GHPullRequestSearchBuilder.ReviewStatus.ABSENT.getStatus(), equalTo("none"));
assertThat(GHPullRequestSearchBuilder.ReviewStatus.REQUIRED.getStatus(), equalTo("required"));
assertThat(GHPullRequestSearchBuilder.ReviewStatus.APPROVED.getStatus(), equalTo("approved"));
assertThat(GHPullRequestSearchBuilder.ReviewStatus.REJECTED.getStatus(), equalTo("changes_requested"));
}

}

0 comments on commit 74f407a

Please sign in to comment.