Issue #13321: Kill mutation for SummaryJavaDocCheck-7#13317
Issue #13321: Kill mutation for SummaryJavaDocCheck-7#13317rdiachenko merged 1 commit intocheckstyle:masterfrom
Conversation
|
Github, generate report |
|
Github, generate report |
|
Github, generate report |
|
Pitest are failing . |
a11781f to
1bb370a
Compare
|
Not all tags are Custom named. There are bunch of standard inline tags please make test with recognized inlined tag or show existing line in Input and explain why it doesn't help to kill survival |
|
#13317 (comment) Thanks for clarifying @romani this method check 2 condition that the name of inline tag should be match to Know this method is only called by 2 method which are and in which as a name parameter already we are passing the name as so if this name will not match with the name of javadoc tag then method return false and in return statment both the condition are in && so if the removed statement is true still it will fail |
|
@Kevin222004 , Please resolve conflict meanwhile |
|
Yes, we check only predefined inline tags , and all of them are Custom for us. |
|
@Kevin222004 please resolve a conflict |
Issue #13321: Kill mutation for SummaryJavaDocCheck-7
Check :-
https://checkstyle.org/checks/javadoc/summaryjavadoc.html#SummaryJavadoc
Mutation
checkstyle/config/pitest-suppressions/pitest-javadoc-suppressions.xml
Lines 925 to 932 in 08da65a
Explaination
this method is used by two method
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.java
Lines 464 to 475 in 08da65a
Please guide if this is wrong. as per https://checkstyle.org/apidocs/com/puppycrawl/tools/checkstyle/api/JavadocTokenTypes.html#CUSTOM_NAME whatever the tag will come it will always be true.
another and main reason the method is returning
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.java
Line 484 in 08da65a
the tag with given name then that task is already done by only
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.java
Line 493 in 08da65a
Regression :-
Diff Regression config: https://gist.githubusercontent.com/Kevin222004/61eaa69fe98585b6ee1882ca082362bc/raw/316ca02ce9fd290119d9bfc560f2b11e84a1b685/Summary.xml
Diff Regression projects: https://gist.githubusercontent.com/Kevin222004/9600f179b602d4c971bdb0a050099005/raw/360a95ed7bb60d7a0956e531199d484c4d6f6617/test-projects.properties
Report label: Regression-2