Skip to content
GitHub Actions / pitest completed Dec 14, 2024 in 0s

Pitest mutation testing feedback

  • Surviving mutants in this change: 20
  • Killed mutants in this change: 69
class surviving killed
🧟tech.picnic.errorprone.bugpatterns.EagerStringFormatting$StringFormatExpression 13 26
🧟tech.picnic.errorprone.bugpatterns.EagerStringFormatting 7 43

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

Annotations

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

replaced return value with null for analyzeFormatStringContext (covered by 1 tests NullReturnValsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

replaced return value with null for analyzeFormatStringContext (no tests cover this line NullReturnValsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

Check warning on line 186 in error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/EagerStringFormatting.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

replaced return value with null for analyzeFormatStringContext (covered by 1 tests NullReturnValsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

replaced return value with null for analyzeFormatStringContext (no tests cover this line NullReturnValsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

replaced return value with null for 1st lambda in deriveFormatStringExpression (no tests cover this line NullReturnValsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

replaced boolean return with true for isSimplifiable (no tests cover this line BooleanTrueReturnValsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

Replaced integer subtraction with addition (covered by 2 tests MathMutator)
removed conditional - replaced equality check with false (covered by 2 tests RemoveConditionalMutator_EQUAL_ELSE)

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

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

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

swapped parameters 1 and 2 in call to indexOf (covered by 2 tests ParamSwapMutator)

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

replaced boolean return with true for isSimplifiable (covered by 2 tests BooleanTrueReturnValsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

replaced boolean return with false for 1st lambda in isSimplifiable (covered by 2 tests BooleanFalseReturnValsMutator)

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

See this annotation in the file changed.

@github-actions github-actions / pitest

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

replaced boolean return with true for isSimplifiable (no tests cover this line BooleanTrueReturnValsMutator)