Skip to content

Issue #13501: Kill mutation for DetailAstImpl-7#13654

Merged
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:DetailAstImpl4
Aug 28, 2023
Merged

Issue #13501: Kill mutation for DetailAstImpl-7#13654
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:DetailAstImpl4

Conversation

@Kevin222004
Copy link
Copy Markdown
Contributor

@Kevin222004 Kevin222004 commented Aug 27, 2023

Issue #13501: Kill mutation for DetailAstImpl-7

https://github.com/checkstyle/checkstyle/blob/master/src/main/java/com/puppycrawl/tools/checkstyle/DetailAstImpl.java


Mutations

<mutation unstable="false">
<sourceFile>DetailAstImpl.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.DetailAstImpl</mutatedClass>
<mutatedMethod>getHiddenAfter</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator>
<description>replaced call to java/util/Collections::unmodifiableList with argument</description>
<lineContent>returnList = Collections.unmodifiableList(hiddenAfter);</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.

No input based test as we need to simulate tree creation with removal, but real logic do not remove children

@romani romani merged commit 8f08d58 into checkstyle:master Aug 28, 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