Skip to content

Issue #13321: Kill mutation for XpathQueryGenerator#13406

Merged
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:xp3
Jul 20, 2023
Merged

Issue #13321: Kill mutation for XpathQueryGenerator#13406
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:xp3

Conversation

@Kevin222004
Copy link
Copy Markdown
Contributor

@Kevin222004 Kevin222004 commented Jul 17, 2023

Issue #13321: Kill mutation for XpathQueryGenerator


Mutation

<mutation unstable="false">
<sourceFile>XpathQueryGenerator.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.xpath.XpathQueryGenerator</mutatedClass>
<mutatedMethod>findChildWithTextAttributeRecursively</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getNextSibling</description>
<lineContent>ast = ast.getNextSibling()) {</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>XpathQueryGenerator.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.xpath.XpathQueryGenerator</mutatedClass>
<mutatedMethod>findPositionAmongSiblings</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getPreviousSibling</description>
<lineContent>cur = cur.getPreviousSibling();</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>XpathQueryGenerator.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.xpath.XpathQueryGenerator</mutatedClass>
<mutatedMethod>hasAtLeastOneSiblingWithSameTokenType</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getNextSibling</description>
<lineContent>next = next.getNextSibling();</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>XpathQueryGenerator.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.xpath.XpathQueryGenerator</mutatedClass>
<mutatedMethod>hasAtLeastOneSiblingWithSameTokenType</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getPreviousSibling</description>
<lineContent>prev = prev.getPreviousSibling();</lineContent>
</mutation>


Explaination

test added

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, Input based testing is not applicable.

@romani romani merged commit b2df719 into checkstyle:master Jul 20, 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