We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 601213d commit bbb00f9Copy full SHA for bbb00f9
1 file changed
src/test/java/com/puppycrawl/tools/checkstyle/DefaultLoggerTest.java
@@ -308,6 +308,14 @@ public void testNewCtor() throws Exception {
308
}
309
310
311
+ /**
312
+ * Direct invocation of {@code addException} is necessary because
313
+ * {@code Checker} implementation does not call {@code addException}
314
+ * during normal file processing flow, leaving mutations on lines 179-183
315
+ * ({@code PrintWriter::println}, {@code getLocalizedMessage},
316
+ * {@code AuditEvent::getFileName}, {@code Throwable::printStackTrace})
317
+ * with no coverage if tested only through {@code verifyWithInlineConfigParserAndDefaultLogger}.
318
+ */
319
@Test
320
public void testAddException() throws Exception {
321
try (MockByteArrayOutputStream errorStream = new MockByteArrayOutputStream()) {
0 commit comments