Skip to content

Commit

Permalink
Issue #13109: Kill mutation for NestedIfDepthCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin222004 authored and romani committed Jun 24, 2023
1 parent 15cef16 commit aacd217
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions config/pitest-suppressions/pitest-coding-2-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,6 @@
<lineContent>final DetailAST firstNextNode = CheckUtil.getFirstNode(nextNode);</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>NestedIfDepthCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.coding.NestedIfDepthCheck</mutatedClass>
<mutatedMethod>beginTree</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable depth</description>
<lineContent>depth = 0;</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>OneStatementPerLineCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.coding.OneStatementPerLineCheck</mutatedClass>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ public int[] getRequiredTokens() {
return new int[] {TokenTypes.LITERAL_IF};
}

@Override
public void beginTree(DetailAST rootAST) {
depth = 0;
}

@Override
public void visitToken(DetailAST literalIf) {
if (!CheckUtil.isElseIf(literalIf)) {
Expand Down

0 comments on commit aacd217

Please sign in to comment.