Skip to content

Introduce EagerStringFormatting check #2573

Introduce EagerStringFormatting check

Introduce EagerStringFormatting check #2573

GitHub Actions / pitest completed Apr 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 270 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 270 without causing a test to fail

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

Check warning on line 242 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 242 without causing a test to fail

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

Check warning on line 268 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 268 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 283 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 283 without causing a test to fail

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

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

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

Check warning on line 231 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 231 without causing a test to fail

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

Check warning on line 277 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 277 without causing a test to fail

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

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

2 different changes can be made to line 275 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 268 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 268 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 274 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 274 without causing a test to fail

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

Check warning on line 289 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 289 without causing a test to fail

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