Skip to content
GitHub Actions / pitest completed Mar 23, 2024 in 0s

Pitest mutation testing feedback

  • Surviving mutants in this change: 38
  • Killed mutants in this change: 71
class surviving killed
🧟tech.picnic.errorprone.guidelines.bugpatterns.TestHelperSourceFormat 31 63
🧟tech.picnic.errorprone.utils.SourceCode 7 6
🎉tech.picnic.errorprone.documentation.BugPatternTestExtractor$BugPatternTestCollector 0 2

Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Annotations

Check warning on line 104 in error-prone-utils/src/main/java/tech/picnic/errorprone/utils/SourceCode.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 104 without causing a test to fail

replaced return value with Optional.empty for joinConstantSourceCodeLines (no tests cover this line EmptyObjectReturnValsMutator)

Check warning on line 59 in error-prone-utils/src/main/java/tech/picnic/errorprone/utils/SourceCode.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 59 without causing a test to fail

removed conditional - replaced equality check with true (covered by 1 tests RemoveConditionalMutator_EQUAL_IF)

Check warning on line 91 in error-prone-utils/src/main/java/tech/picnic/errorprone/utils/SourceCode.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 91 without causing a test to fail

removed conditional - replaced equality check with false (no tests cover this line RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with true (no tests cover this line RemoveConditionalMutator_EQUAL_IF)

Check warning on line 53 in error-prone-utils/src/main/java/tech/picnic/errorprone/utils/SourceCode.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 53 without causing a test to fail

removed conditional - replaced equality check with false (covered by 1 tests RemoveConditionalMutator_EQUAL_ELSE)

Check warning on line 97 in error-prone-utils/src/main/java/tech/picnic/errorprone/utils/SourceCode.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 97 without causing a test to fail

removed conditional - replaced equality check with false (no tests cover this line RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with true (no tests cover this line RemoveConditionalMutator_EQUAL_IF)

Check warning on line 243 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to a lambda on line 243 without causing a test to fail

replaced return value with Optional.empty for 1st lambda in suggestTextBlockIndentation (covered by 2 tests EmptyObjectReturnValsMutator)

Check warning on line 284 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to a lambda on line 284 without causing a test to fail

replaced boolean return with false for 1st lambda in isJabelEnabled (no tests cover this line BooleanFalseReturnValsMutator)
replaced boolean return with true for 1st lambda in isJabelEnabled (no tests cover this line BooleanTrueReturnValsMutator)

Check warning on line 258 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 258 without causing a test to fail

changed conditional boundary (covered by 2 tests ConditionalsBoundaryMutator)
removed conditional - replaced comparison check with false (covered by 2 tests RemoveConditionalMutator_ORDER_ELSE)

Check warning on line 184 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 184 without causing a test to fail

removed conditional - replaced equality check with true (covered by 4 tests RemoveConditionalMutator_EQUAL_IF)

Check warning on line 208 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to a lambda on line 208 without causing a test to fail

replaced boolean return with false for 1st lambda in canUseTextBlocks (no tests cover this line BooleanFalseReturnValsMutator)
replaced boolean return with true for 1st lambda in canUseTextBlocks (no tests cover this line BooleanTrueReturnValsMutator)

Check warning on line 186 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 186 without causing a test to fail

removed conditional - replaced equality check with true (covered by 4 tests RemoveConditionalMutator_EQUAL_IF)

Check warning on line 283 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 283 without causing a test to fail

replaced boolean return with false for isJabelEnabled (no tests cover this line BooleanFalseReturnValsMutator)
replaced boolean return with true for isJabelEnabled (no tests cover this line BooleanTrueReturnValsMutator)

Check warning on line 253 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 253 without causing a test to fail

removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with true (covered by 2 tests RemoveConditionalMutator_EQUAL_IF)

Check warning on line 246 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to a lambda on line 246 without causing a test to fail

replaced return value with Optional.empty for 2nd lambda in suggestTextBlockIndentation (covered by 2 tests EmptyObjectReturnValsMutator)

Check warning on line 174 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 174 without causing a test to fail

removed conditional - replaced equality check with true (covered by 4 tests RemoveConditionalMutator_EQUAL_IF)

Check warning on line 166 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 166 without causing a test to fail

removed conditional - replaced equality check with true (covered by 4 tests RemoveConditionalMutator_EQUAL_IF)

Check warning on line 221 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 221 without causing a test to fail

removed call to replace (covered by 2 tests RemoveChainedCallsMutator)
swapped parameters 1 and 2 in call to replace (covered by 2 tests ParamSwapMutator)

Check warning on line 222 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 222 without causing a test to fail

removed call to replace (covered by 2 tests RemoveChainedCallsMutator)
swapped parameters 1 and 2 in call to replace (covered by 2 tests ParamSwapMutator)

Check warning on line 238 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 238 without causing a test to fail

replaced return value with "" for suggestTextBlockIndentation (no tests cover this line EmptyObjectReturnValsMutator)

Check warning on line 237 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 237 without causing a test to fail

removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with true (covered by 2 tests RemoveConditionalMutator_EQUAL_IF)

Check warning on line 200 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 200 without causing a test to fail

removed conditional - replaced comparison check with true (covered by 2 tests RemoveConditionalMutator_ORDER_IF)

Check warning on line 208 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 208 without causing a test to fail

removed conditional - replaced equality check with false (no tests cover this line RemoveConditionalMutator_EQUAL_ELSE)

Check warning on line 161 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 161 without causing a test to fail

replaced return value with null for flagFormattingIssues (covered by 2 tests NullReturnValsMutator)

Check warning on line 207 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 207 without causing a test to fail

removed conditional - replaced equality check with false (no tests cover this line RemoveConditionalMutator_EQUAL_ELSE)
removed conditional - replaced equality check with true (no tests cover this line RemoveConditionalMutator_EQUAL_IF)

Check warning on line 206 in error-prone-guidelines/src/main/java/tech/picnic/errorprone/guidelines/bugpatterns/TestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 206 without causing a test to fail

removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)