forked from checkstyle/checkstyle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue checkstyle#11719: Activate all group for pitest-tree-walker
- Loading branch information
1 parent
da4a1fa
commit 3589404
Showing
2 changed files
with
177 additions
and
4 deletions.
There are no files selected for viewing
155 changes: 155 additions & 0 deletions
155
.ci/pitest-suppressions/pitest-tree-walker-suppressions.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<suppressedMutations> | ||
<mutation unstable="false"> | ||
<sourceFile>DetailNodeTreeStringPrinter.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.DetailNodeTreeStringPrinter</mutatedClass> | ||
<mutatedMethod>getParseErrorMessage</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator> | ||
<description>removed call to com/puppycrawl/tools/checkstyle/JavadocDetailNodeParser$ParseErrorMessage::getLineNumber</description> | ||
<lineContent>parseErrorMessage.getLineNumber(),</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>DetailNodeTreeStringPrinter.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.DetailNodeTreeStringPrinter</mutatedClass> | ||
<mutatedMethod>parseFile</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator> | ||
<description>removed call to java/nio/charset/Charset::name</description> | ||
<lineContent>System.getProperty("file.encoding", StandardCharsets.UTF_8.name()));</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>DetailNodeTreeStringPrinter.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.DetailNodeTreeStringPrinter</mutatedClass> | ||
<mutatedMethod>parseFile</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator> | ||
<description>replaced call to java/lang/System::getProperty with argument</description> | ||
<lineContent>System.getProperty("file.encoding", StandardCharsets.UTF_8.name()));</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>DetailNodeTreeStringPrinter.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.DetailNodeTreeStringPrinter</mutatedClass> | ||
<mutatedMethod>parseFile</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator> | ||
<description>replaced call to java/io/File::getAbsoluteFile with receiver</description> | ||
<lineContent>final FileText text = new FileText(file.getAbsoluteFile(),</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>JavadocDetailNodeParser.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.JavadocDetailNodeParser</mutatedClass> | ||
<mutatedMethod>getMissedHtmlTag</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator> | ||
<description>removed call to java/util/Deque::pop</description> | ||
<lineContent>htmlTagNameStart = stack.pop();</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>SuppressionsStringPrinter.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.SuppressionsStringPrinter</mutatedClass> | ||
<mutatedMethod>printSuppressions</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator> | ||
<description>removed call to java/nio/charset/Charset::name</description> | ||
<lineContent>System.getProperty("file.encoding", StandardCharsets.UTF_8.name()));</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>SuppressionsStringPrinter.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.SuppressionsStringPrinter</mutatedClass> | ||
<mutatedMethod>printSuppressions</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator> | ||
<description>replaced call to java/lang/System::getProperty with argument</description> | ||
<lineContent>System.getProperty("file.encoding", StandardCharsets.UTF_8.name()));</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>SuppressionsStringPrinter.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.SuppressionsStringPrinter</mutatedClass> | ||
<mutatedMethod>printSuppressions</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator> | ||
<description>replaced call to java/io/File::getAbsoluteFile with receiver</description> | ||
<lineContent>final FileText fileText = new FileText(file.getAbsoluteFile(),</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>TreeWalker.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.TreeWalker</mutatedClass> | ||
<mutatedMethod>createNewCheckSortedSet</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator> | ||
<description>replaced call to java/util/Comparator::thenComparing with receiver</description> | ||
<lineContent>.thenComparing(AbstractCheck::getId,</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>TreeWalker.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.TreeWalker</mutatedClass> | ||
<mutatedMethod>createNewCheckSortedSet</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator> | ||
<description>replaced call to java/util/Comparator::thenComparing with receiver</description> | ||
<lineContent>.thenComparing(AbstractCheck::hashCode));</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>TreeWalker.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.TreeWalker</mutatedClass> | ||
<mutatedMethod>createNewCheckSortedSet</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator> | ||
<description>removed call to java/util/Comparator::naturalOrder</description> | ||
<lineContent>Comparator.nullsLast(Comparator.naturalOrder()))</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>TreeWalker.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.TreeWalker</mutatedClass> | ||
<mutatedMethod>getExternalResourceLocations</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator> | ||
<description>replaced call to java/util/stream/Stream::map with receiver</description> | ||
<lineContent>.map(ExternalResourceHolder.class::cast)</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>TreeWalker.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.TreeWalker</mutatedClass> | ||
<mutatedMethod>lambda$createNewCheckSortedSet$3</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.returns.EmptyObjectReturnValsMutator</mutator> | ||
<description>replaced return value with "" for com/puppycrawl/tools/checkstyle/TreeWalker::lambda$createNewCheckSortedSet$3</description> | ||
<lineContent>Comparator.<AbstractCheck, String>comparing(check -> check.getClass().getName())</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>TreeWalker.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.TreeWalker</mutatedClass> | ||
<mutatedMethod>registerCheck</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator> | ||
<description>removed call to java/lang/Class::getName</description> | ||
<lineContent>+ "method to return 'true'", check.getClass().getName(),</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>TreeWalker.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.TreeWalker</mutatedClass> | ||
<mutatedMethod>registerCheck</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator> | ||
<description>removed call to com/puppycrawl/tools/checkstyle/utils/TokenUtil::getTokenName</description> | ||
<lineContent>TokenUtil.getTokenName(tokenId));</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>TreeWalker.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.TreeWalker</mutatedClass> | ||
<mutatedMethod>registerCheck</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator> | ||
<description>replaced call to java/lang/String::format with argument</description> | ||
<lineContent>final String message = String.format(Locale.ROOT, "Check '%s' waits for comment type "</lineContent> | ||
</mutation> | ||
|
||
<mutation unstable="false"> | ||
<sourceFile>TreeWalkerAuditEvent.java</sourceFile> | ||
<mutatedClass>com.puppycrawl.tools.checkstyle.TreeWalkerAuditEvent</mutatedClass> | ||
<mutatedMethod>getColumn</mutatedMethod> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ReturnValuesMutator</mutator> | ||
<description>replaced return of primitive boolean/byte/short/integer value with (x == 1) ? 0 : x + 1</description> | ||
<lineContent>return violation.getColumnNo();</lineContent> | ||
</mutation> | ||
</suppressedMutations> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters