Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Pitest suppression for EmptyLineSeperator-2 #12281

Closed
Kevin222004 opened this issue Oct 9, 2022 · 2 comments
Closed

Resolve Pitest suppression for EmptyLineSeperator-2 #12281

Kevin222004 opened this issue Oct 9, 2022 · 2 comments

Comments

@Kevin222004
Copy link
Collaborator

Related to #7797

kill mutation

<mutation unstable="false">
<sourceFile>EmptyLineSeparatorCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyLineSeparatorCheck</mutatedClass>
<mutatedMethod>isLineEmptyAfterPackage</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getLastChild with receiver</description>
<lineContent>final int lastChildLineNo = ast.getLastChild().getLineNo();</lineContent>
</mutation>

and
<mutation unstable="false">
<sourceFile>EmptyLineSeparatorCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyLineSeparatorCheck</mutatedClass>
<mutatedMethod>isLineEmptyAfterPackage</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getLastChild with receiver</description>
<lineContent>final int lastChildLineNo = ast.getLastChild().getLineNo();</lineContent>
</mutation>

and
<mutation unstable="false">
<sourceFile>EmptyLineSeparatorCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.whitespace.EmptyLineSeparatorCheck</mutatedClass>
<mutatedMethod>getViolationAstForPackage</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to com/puppycrawl/tools/checkstyle/api/DetailAST::getLastChild with receiver</description>
<lineContent>final int lastChildLineNo = ast.getLastChild().getLineNo();</lineContent>
</mutation>

@Kevin222004
Copy link
Collaborator Author

I am on it, Make pr when it is approved

@rnveach
Copy link
Member

rnveach commented Jan 7, 2023

This will be resolved under #12601 so I am closing this.

@rnveach rnveach closed this as completed Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

3 participants