Issue #13321: Kill mutation for SummaryJavaDocCheck-3#13313
Merged
romani merged 1 commit intocheckstyle:masterfrom Jul 2, 2023
Merged
Issue #13321: Kill mutation for SummaryJavaDocCheck-3#13313romani merged 1 commit intocheckstyle:masterfrom
romani merged 1 commit intocheckstyle:masterfrom
Conversation
Contributor
Author
|
Github, generate report |
Contributor
41 tasks
Contributor
Author
|
Github, generate report |
Contributor
Author
|
Github, generate report |
Contributor
Contributor
|
change-config-Regression-2: |
Contributor
Author
|
Github, generate report |
Contributor
|
change-config-Regression-1: |
rdiachenko
reviewed
Jun 28, 2023
Comment on lines
+886
to
+903
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
Member
There was a problem hiding this comment.
What's the reason for empty lines?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #13321: Kill mutation for SummaryJavaDocCheck-3
Check :-
https://checkstyle.org/checks/javadoc/summaryjavadoc.html#SummaryJavadoc
Mutation
checkstyle/config/pitest-suppressions/pitest-javadoc-suppressions.xml
Lines 885 to 901 in ce6a111
Explaination
getSummaryDentence is used only at
validateUntaggedSummaryRemoval of
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/SummaryJavadocCheck.java
Lines 674 to 676 in ce6a111
https://checkstyle.org/apidocs/com/puppycrawl/tools/checkstyle/api/JavadocTokenTypes.html#JAVADOC
according to this instead of loop stop at javadoc tag ot will stop at eof. and it doesn't effect output.
lets assume in case if we have code like this
then
worst case testbecome descripion which is also under javadoctagRegression :-
Report-1 :- https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/58c7e7f_2023162747/reports/diff/index.html
Report-2 :- https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/58c7e7f_2023105658/reports/diff/index.html
Diff Regression config: https://gist.githubusercontent.com/Kevin222004/61eaa69fe98585b6ee1882ca082362bc/raw/316ca02ce9fd290119d9bfc560f2b11e84a1b685/Summary.xml
Diff Regression projects: https://gist.githubusercontent.com/Kevin222004/21e3934e85f802e2fbd48af06d122364/raw/604256badd733d8568064f371d55657c04b00dfd/test-projects-2.properties
Report label: change-config-Regression-1