Skip to content

Issue #13321: Kill mutation for SummaryJavaDocCheck-9#13319

Merged
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:s9
Jun 29, 2023
Merged

Issue #13321: Kill mutation for SummaryJavaDocCheck-9#13319
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:s9

Conversation

@Kevin222004
Copy link
Copy Markdown
Contributor

@Kevin222004 Kevin222004 commented Jun 26, 2023

Issue #13321: Kill mutation for SummaryJavaDocCheck-9


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>isTextPresentInsideHtmlTag</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to java/lang/String::isBlank</description>
<lineContent>isTextPresentInsideHtmlTag = !nestedChild.getText().isBlank();</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>SummaryJavadocCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.javadoc.SummaryJavadocCheck</mutatedClass>
<mutatedMethod>isTextPresentInsideHtmlTag</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_EQUAL_IF</mutator>
<description>removed conditional - replaced equality check with true</description>
<lineContent>isTextPresentInsideHtmlTag = !nestedChild.getText().isBlank();</lineContent>
</mutation>


Explaination

Test added


@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

@github-actions
Copy link
Copy Markdown
Contributor

@Kevin222004 Kevin222004 changed the title Issue #13109: Kill mutation for SummaryJavaDocCheck-9 Issue #13321: Kill mutation for SummaryJavaDocCheck-9 Jun 29, 2023
@Kevin222004 Kevin222004 marked this pull request as ready for review June 29, 2023 03:37
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 if CI pass

@romani romani merged commit 08da65a into checkstyle:master Jun 29, 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.

2 participants