Skip to content

Update all tests to use text blocks #54

Update all tests to use text blocks

Update all tests to use text blocks #54

GitHub Actions / pitest completed Jan 15, 2024 in 1s

Pitest mutation testing feedback

  • Surviving mutants in this change: 32
  • Killed mutants in this change: 56
class surviving killed
🧟tech.picnic.errorprone.bugpatterns.ErrorProneTestHelperSourceFormat 30 50
🧟tech.picnic.errorprone.bugpatterns.util.SourceCode 2 6

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

Annotations

Check warning on line 314 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to a lambda on line 314 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 209 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

Check warning on line 183 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

Check warning on line 247 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

Check warning on line 231 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 231 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 252 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to a lambda on line 252 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 175 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

Check warning on line 230 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 230 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 246 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 246 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 255 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to a lambda on line 255 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 217 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

A change can be made to line 217 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 216 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 216 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 271 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

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

removed call to substring (covered by 2 tests RemoveChainedCallsMutator)
replaced return value with Optional.empty for getIndentation (covered by 2 tests EmptyObjectReturnValsMutator)

Check warning on line 215 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

Check warning on line 313 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 313 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 267 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 267 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 193 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

Check warning on line 217 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to a lambda on line 217 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 195 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

Check warning on line 262 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/ErrorProneTestHelperSourceFormat.java

See this annotation in the file changed.

@github-actions github-actions / pitest

2 different changes can be made to line 262 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 45 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/util/SourceCode.java

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

Check warning on line 51 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/util/SourceCode.java

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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