Skip to content

Commit

Permalink
Issue #13501: Kill mutation for JavadocStyleCheck2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin222004 authored and rdiachenko committed Aug 27, 2023
1 parent 0dba32b commit a18d30f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
16 changes: 8 additions & 8 deletions config/pitest-suppressions/pitest-javadoc-suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,14 @@
<lineContent>index += 2;</lineContent>
</mutation>

<mutation unstable="false">
<sourceFile>JavadocStyleCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocStyleCheck</mutatedClass>
<mutatedMethod>getCommentText</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to java/lang/String::trim with receiver</description>
<lineContent>return builder.toString().trim();</lineContent>
</mutation>











Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -781,4 +781,14 @@ public void testJavadocStyleCheck3() throws Exception {
getPath("InputJavadocStyleCheck3.java"),
expected);
}

@Test
public void testJavadocStyleCheck4() throws Exception {
final String[] expected = {
"12: " + getCheckMessage(MSG_NO_PERIOD),
};
verifyWithInlineConfigParser(
getPath("InputJavadocStyleCheck5.java"),
expected);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
JavadocStyle
endOfSentenceFormat = \n
*/

package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocstyle;

public class InputJavadocStyleCheck5 {

/** Set of all class field names. */
public String field; // violation above 'First sentence should end with a period'
}

0 comments on commit a18d30f

Please sign in to comment.