Skip to content

Issue #13321: Kill mutation for SummaryJavaDocCheck-6#13316

Merged
rdiachenko merged 1 commit intocheckstyle:masterfrom
Kevin222004:s6
Jul 5, 2023
Merged

Issue #13321: Kill mutation for SummaryJavaDocCheck-6#13316
rdiachenko merged 1 commit intocheckstyle:masterfrom
Kevin222004:s6

Conversation

@Kevin222004
Copy link
Copy Markdown
Contributor

@Kevin222004 Kevin222004 commented Jun 26, 2023

Issue #13321: Kill mutation for SummaryJavaDocCheck-6


Check :-

https://checkstyle.org/checks/javadoc/summaryjavadoc.html#SummaryJavadoc


Mutation

<mutation unstable="false">
<sourceFile>SummaryJavadocCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.javadoc.SummaryJavadocCheck</mutatedClass>
<mutatedMethod>isInlineTagPresent</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF</mutator>
<description>removed conditional - replaced equality check with true</description>
<lineContent>|| ast.getType() == JavadocTokenTypes.HTML_ELEMENT</lineContent>
</mutation>


Explaination

logically this statement has written to pass ast to getInlineTagNodeWithinHtmlElement when it is set to HTML_ELEMENT only but if we remove it then getInlineTagNodeWithinHtmlElement has three condition 1 for HTML_ELEMENT which we don't have any issue 1 JAVADOC_INLINETAG and logic for that is already set in our methd and HTML_TAg is always under the HTML_Element so removal is not issue


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: Final-Report-1

@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

@github-actions
Copy link
Copy Markdown
Contributor

@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

@Kevin222004 Kevin222004 changed the title Issue #13109: Kill mutation for SummaryJavaDocCheck-6 Issue #13321: Kill mutation for SummaryJavaDocCheck-6 Jun 29, 2023
@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

@github-actions
Copy link
Copy Markdown
Contributor

@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok to merge

@Kevin222004
Copy link
Copy Markdown
Contributor Author

@romani minor edit in code
The changes are already mentioned by in reason but at that time I haven't that in my mind

@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

Copy link
Copy Markdown
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Items

@github-actions
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Member

@Vyom-Yadav Vyom-Yadav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, with the technical changes, please address the review comment by @romani

Copy link
Copy Markdown
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok to merge

@romani
Copy link
Copy Markdown
Member

romani commented Jul 2, 2023

@Kevin222004 , please fix conflict

@romani romani removed their assignment Jul 2, 2023
Copy link
Copy Markdown
Member

@rdiachenko rdiachenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rdiachenko rdiachenko merged commit 2be5780 into checkstyle:master Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants