Skip to content

Commit

Permalink
Issue checkstyle#12017: Kill surviving mutations in AbstractCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyom-Yadav authored and nrmancuso committed Aug 2, 2022
1 parent a54849a commit 8054275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 54 deletions.
54 changes: 0 additions & 54 deletions .ci/pitest-suppressions/pitest-api-suppressions.xml
Expand Up @@ -18,33 +18,6 @@
<lineContent>return Collections.unmodifiableSet(tokens);</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AbstractCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.api.AbstractCheck</mutatedClass>
<mutatedMethod>log</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getColumnNo</description>
<lineContent>ast.getColumnNo(),</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AbstractCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.api.AbstractCheck</mutatedClass>
<mutatedMethod>log</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/DetailAST::getType</description>
<lineContent>ast.getType(),</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AbstractCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.api.AbstractCheck</mutatedClass>
<mutatedMethod>log</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to java/lang/Object::getClass</description>
<lineContent>getClass(),</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AbstractCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.api.AbstractCheck</mutatedClass>
Expand All @@ -54,15 +27,6 @@
<lineContent>getCustomMessages().get(key)));</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AbstractCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.api.AbstractCheck</mutatedClass>
<mutatedMethod>log</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator>
<description>replaced call to java/util/Map::get with argument</description>
<lineContent>getCustomMessages().get(key)));</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AbstractCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.api.AbstractCheck</mutatedClass>
Expand All @@ -72,24 +36,6 @@
<lineContent>getId(),</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AbstractCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.api.AbstractCheck</mutatedClass>
<mutatedMethod>log</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/AbstractCheck::getMessageBundle</description>
<lineContent>getMessageBundle(),</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AbstractCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.api.AbstractCheck</mutatedClass>
<mutatedMethod>log</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/api/AbstractCheck::getSeverityLevel</description>
<lineContent>getSeverityLevel(),</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AbstractFileSetCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck</mutatedClass>
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Expand Up @@ -4063,6 +4063,10 @@
<param>com.puppycrawl.tools.checkstyle.checks.coding.UnusedLocalVariableCheckTest</param>
<!-- 1% mutation in CheckUtil -->
<param>com.puppycrawl.tools.checkstyle.checks.OuterTypeFilenameCheckTest</param>
<param>org.checkstyle.suppressionxpathfilter.XpathRegressionUnusedLocalVariableTest</param>
<param>com.puppycrawl.tools.checkstyle.checks.javadoc.SummaryJavadocCheckTest</param>
<param>org.checkstyle.suppressionxpathfilter.XpathRegressionJavadocMethodTest</param>
<param>com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocMethodCheckTest</param>
</targetTests>
<excludedTestClasses>
<param>*.Input*</param>
Expand Down

0 comments on commit 8054275

Please sign in to comment.