Skip to content

Commit

Permalink
Issue checkstyle#13809: kill mutation for AuditEventDefaultFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin222004 committed Oct 4, 2023
1 parent ac7b37c commit ee154ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
27 changes: 0 additions & 27 deletions config/pitest-suppressions/pitest-common-suppressions.xml
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressedMutations>
<mutation unstable="false">
<sourceFile>AuditEventDefaultFormatter.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.AuditEventDefaultFormatter</mutatedClass>
<mutatedMethod>format</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter::calculateBufferLength</description>
<lineContent>final int bufLen = calculateBufferLength(event, severityLevelName.length());</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AuditEventDefaultFormatter.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.AuditEventDefaultFormatter</mutatedClass>
<mutatedMethod>format</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.NonVoidMethodCallMutator</mutator>
<description>removed call to java/lang/String::length</description>
<lineContent>final int bufLen = calculateBufferLength(event, severityLevelName.length());</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>AuditEventDefaultFormatter.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.AuditEventDefaultFormatter</mutatedClass>
<mutatedMethod>format</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.ArgumentPropagationMutator</mutator>
<description>replaced call to com/puppycrawl/tools/checkstyle/AuditEventDefaultFormatter::calculateBufferLength with argument</description>
<lineContent>final int bufLen = calculateBufferLength(event, severityLevelName.length());</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>Checker.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.Checker</mutatedClass>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4369,6 +4369,7 @@
<avoidCallsTo>com.puppycrawl.tools.checkstyle.utils.UnmodifiableCollectionUtil</avoidCallsTo>
</avoidCallsTo>
<excludedMethods>
<param>calculateBufferLength</param>
<!-- caching of search results, big performance optimization -->
<param>lazyLoad</param>
</excludedMethods>
Expand Down

0 comments on commit ee154ab

Please sign in to comment.