Skip to content

Issue #13321: Kill mutation for Xpath profile#13401

Merged
nrmancuso merged 1 commit intocheckstyle:masterfrom
Kevin222004:xp2
Jul 29, 2023
Merged

Issue #13321: Kill mutation for Xpath profile#13401
nrmancuso merged 1 commit intocheckstyle:masterfrom
Kevin222004:xp2

Conversation

@Kevin222004
Copy link
Copy Markdown
Contributor

Issue #13321: Kill mutation for Xpath profile


Mutation

<mutation unstable="false">
<sourceFile>DescendantIterator.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.xpath.iterators.DescendantIterator</mutatedClass>
<mutatedMethod>&lt;init&gt;</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable descendantEnum</description>
<lineContent>descendantEnum = null;</lineContent>
</mutation>
<mutation unstable="false">
<sourceFile>FollowingIterator.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.xpath.iterators.FollowingIterator</mutatedClass>
<mutatedMethod>&lt;init&gt;</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable descendantEnum</description>
<lineContent>descendantEnum = null;</lineContent>
</mutation>

and
<mutation unstable="false">
<sourceFile>PrecedingIterator.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.xpath.iterators.PrecedingIterator</mutatedClass>
<mutatedMethod>&lt;init&gt;</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable descendantEnum</description>
<lineContent>descendantEnum = null;</lineContent>
</mutation>


Explaination

All are default value and they are in constructor

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.

LGTM! Those are the default values.

CI Failure is unrelated.

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.

Just removal of null assignments that are happening already before ctor execution

@romani romani assigned rdiachenko and unassigned romani Jul 21, 2023
@romani romani requested a review from rdiachenko July 21, 2023 15:52
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
Copy link
Copy Markdown
Member

rebased

@romani romani assigned Vyom-Yadav and unassigned rdiachenko Jul 22, 2023
@nrmancuso
Copy link
Copy Markdown
Contributor

@romani looks like @Vyom-Yadav already reviewed and approved, I will merge this

@nrmancuso nrmancuso merged commit f5cbb24 into checkstyle:master Jul 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.

5 participants