Skip to content

Commit

Permalink
Increase coverage (surprised that Pitest didn't catch this one)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Aug 11, 2024
1 parent c754d1e commit 861b1bc
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ void matches() {
CompilationTestHelper.newInstance(MatcherTestChecker.class, getClass())
.addSourceLines(
"A.java",
"import java.io.OutputStream;",
"import java.util.function.Predicate;",
"",
"class A {",
Expand Down Expand Up @@ -50,19 +51,23 @@ void matches() {
" return \"foo\"::equals;",
" }",
"",
" A negative9() {",
" OutputStream negative9() {",
" return System.out;",
" }",
"",
" A negative10() {",
" return (this);",
" }",
"",
" Object negative10() {",
" Object negative11() {",
" return (Object) this;",
" }",
"",
" boolean negative11() {",
" boolean negative12() {",
" return !false;",
" }",
"",
" String negative12() {",
" String negative13() {",
" return \"foo\" + 0;",
" }",
"",
Expand Down

0 comments on commit 861b1bc

Please sign in to comment.