Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all tests to use text blocks #198

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Use text blocks

2437c66
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

Update all tests to use text blocks #198

Use text blocks
2437c66
Select commit
Loading
Failed to load commit list.
GitHub Actions / pitest completed Dec 26, 2024 in 1s

Pitest mutation testing feedback

  • Surviving mutants in this change: 34
  • Killed mutants in this change: 71
class surviving killed
🧟tech.picnic.errorprone.guidelines.bugpatterns.TestHelperSourceFormat 27 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 72 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 72 without causing a test to fail

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

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

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

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

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

Check warning on line 130 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 130 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 245 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 245 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 242 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 242 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 257 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 257 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 183 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 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 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 a lambda on line 207 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 185 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 185 without causing a test to fail

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

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

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

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

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

Check warning on line 220 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 220 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 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 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

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

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

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

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

Check warning on line 160 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 160 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

A change 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)

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

2 different changes can be made to line 206 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 261 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 261 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 205 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 205 without causing a test to fail

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