Issue #13501: Kill mutation for CodePointUtil#13473
Conversation
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
Github, generate report |
|
Github, generate report |
|
Github, generate report |
|
Github, generate report |
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
Github, generate report |
|
Report generation failed on phase , |
|
@romani please re-run pitest-common https://github.com/checkstyle/checkstyle/actions/runs/5870097408/job/15916453617?pr=13473#step:7:15 |
|
Relaunched |
src/main/java/com/puppycrawl/tools/checkstyle/utils/CodePointUtil.java
Outdated
Show resolved
Hide resolved
|
Github, generate report |
nrmancuso
left a comment
There was a problem hiding this comment.
Please rearrange declaration order and order of usage to be the same, ex:
boolean x = ...;
boolean y = ...;
if (x) {
...
} else if (y) {
...
}Items:
src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/SeparatorWrapCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/SeparatorWrapCheck.java
Outdated
Show resolved
Hide resolved
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
@Kevin222004 please make CI happy |
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
Github, generate report |
|
Report generation failed on phase "make_report", |
|
@Kevin222004 , please generate report |
|
Github, generate report |
|
Github, generate report |
|
Github, generate report |
|
Github, generate report |
Issue #13501: Kill mutation for CodePointUtil
Mutation introduction at b862853
@nrmancuso is mandatory reviewer, as we allowed this code in PR year ago.
Mutations
checkstyle/config/pitest-suppressions/pitest-utils-suppressions.xml
Lines 174 to 226 in bb64c20
Explaintaion
Both the method
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/utils/CodePointUtil.java
Lines 64 to 70 in 79e7609
and
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/utils/CodePointUtil.java
Lines 78 to 86 in 79e7609
are same only logic has written differently.
in
stripTrailingmethod loop start from lastIndex of array and finsih at index 0 and same but opposite instripLeadingthe condition of loop is
isCodePointWhitespace(codePoints, startIndex)will fail in both the method if their is no whitespaceRegression
Report-1 :- https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/2237062_2023171438/reports/diff/index.html
Report-2 :- https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/2237062_2023180212/reports/diff/index.html
Report-3 :- https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/2237062_2023191958/reports/diff/index.html
Report-4 :-
Report-5 :-
Diff Regression config: https://gist.githubusercontent.com/Kevin222004/66e91526d84b11d76ed35dc61f651108/raw/01d1012ebdb5cae259e1f1775c9b25d68c41c881/codeutil2.xml
Diff Regression projects: https://gist.githubusercontent.com/Kevin222004/2207ddd139a1721d00b0e6b312bc3f03/raw/a0b63175830fccda7c242058d8f513d61d4dce0d/util1.properties
Report label: Aug-28-2.2