As a part of this issue, we have to kill the mutation listed below and remove the suppression from pitest xxxx suppression.xml
To understanding how to kill the mutation
Visit Wiki page, Pitest-docs and expected actions and workflow at #12341.
1) SuppressWithNearbyCommentFilter
2) SuppressWithNearbyTextFilter
some details at #12952, almost finished #15941 but abandoned (everyone is welcome to continue)
3) XpathFilterElement
4) SuppressionXpathSingleFilter
1) SarifLogger
2) Checker
3) XMLLogger$FileMessages
4) XMLLogger
1) ScopeUtil
2) ModuleReflectionUtil
3) BlockCommentPosition
1) SuppressionsStringPrinter
2) TreeWalker
3) DetailNodeTreeStringPrinter
JavadocDetailNodeParser
1) Main
2) Main$CliOptions
1) CheckstyleAntTask$Property
2) CheckstyleAntTask
MemberVariableMutator all are delayed until hcoles/pitest#1230
As a part of this issue, we have to kill the mutation listed below and remove the suppression from pitest xxxx suppression.xml
To understanding how to kill the mutation
Visit Wiki page, Pitest-docs and expected actions and workflow at #12341.
1) Pitest-Filters
1) SuppressWithNearbyCommentFilter
if (!cachedFileAbsolutePath.equals(eventFileTextAbsolutePath))2) SuppressWithNearbyTextFilter
some details at #12952, almost finished #15941 but abandoned (everyone is welcome to continue)
if (!cachedFileAbsolutePath.equals(eventFileTextAbsolutePath))if (!cachedFileAbsolutePath.equals(eventFileTextAbsolutePath))3) XpathFilterElement
Optional.ofNullable(checks).map(CommonUtil::createPattern).orElse(null)Optional.ofNullable(checks).map(CommonUtil::createPattern).orElse(null).stream().map(AbstractNode.class::cast).collect(Collectors.toList())4) SuppressionXpathSingleFilter
this.files = null;Issue #13672: Kill mutation for SuppressionXpathSingleFilter #13794this.checks = null;https://github.com/checkstyle/checkstyle/pull/15777/filesthis.message = null;should be fixed by similar test as in above PR2) Pitest-Common
1) SarifLogger
.replace(MESSAGE_PLACEHOLDER, escape(event.getMessage()))final String version = SarifLogger.class.getPackage().getImplementationVersion();int length = inputStream.read(buffer)2) Checker
final String stripped = CommonUtil.relativizePath(basedir, fileName);this.severity = SeverityLevel.getInstance(severity);this.severity = SeverityLevel.getInstance(severity);3) XMLLogger$FileMessages
private final List<Throwable> exceptions = Collections.synchronizedList(private final List<AuditEvent> errors = Collections.synchronizedList4) XMLLogger
fileMessages.remove(fileName);+ encode(event.getMessage())writer.print(encode(event.getModuleId()))writer.print(encode(event.getSourceName())writer.println("<file name=\"" + encode(fileName)final String version = XMLLogger.class.getPackage().getImplementationVersion();fileMessages.remove(fileName);3) Pitest-Utils
1) ScopeUtil
parent.getParent().getType() == memberTypefor (DetailAST token = aMods.getFirstChild(); token != nulltoken != null && !returnValue;.filter(ModuleReflectionUtil::isCheckstyleModule)for (DetailAST token = node.getParent();.orElseGet(() -> getDefaultScope(aMods.getParent()))2) ModuleReflectionUtil
.filter(ModuleReflectionUtil::isCheckstyleModule)3) BlockCommentPosition
Issue #13321: Kill mutation for BlockCommentPosition 2 #13424
4) Pitest-tree-walker
1) SuppressionsStringPrinter
System.getProperty("file.encoding", StandardCharsets.UTF_8.name()System.getProperty("file.encoding", StandardCharsets.UTF_8.name()final FileText fileText = new FileText(file.getAbsoluteFile2) TreeWalker
Comparator.nullsLast(Comparator.naturalOrder()).thenComparing(AbstractCheck::getIdIssue #13809: Kill mutation in Tree-Walker-2 #13976
3) DetailNodeTreeStringPrinter
System.getProperty("file.encoding", StandardCharsets.UTF_8.name()System.getProperty("file.encoding", StandardCharsets.UTF_8.name()final FileText text = new FileText(file.getAbsoluteFile()JavadocDetailNodeParser
htmlTagNameStart = stack.pop()5) Pitest-main
1) Main
return "Checkstyle version: " + Main.class.getPackage().getImplementationVersiongetOutputStreamOptions(options.outputPath))+ Main.class.getPackage().getImplementationVersion2) Main$CliOptions
.map(Pattern::quote)6) Pitest-ant
1) CheckstyleAntTask$Property
return key;2) CheckstyleAntTask
throw new BuildException(String.format(Locale.ROOT, " Unable to create Root Modulethrow new BuildException(String.format(Locale.ROOT, "Unable to create listeners:+ Objects.toString(checkstyleVersion, "")log(String.format(Locale.ROOT, "%d) Adding %d files from directoryprivate int maxWarnings = Integer.MAX_VALUEthis.maxErrors = maxErrorsMemberVariableMutator all are delayed until hcoles/pitest#1230