Skip to content

Issue #19525: Fix pitest mutations in SuppressionsLoader#19531

Merged
romani merged 1 commit into
checkstyle:masterfrom
Carbon14-48:issue-19525-fix-pitest-suppressionsloader
Mar 30, 2026
Merged

Issue #19525: Fix pitest mutations in SuppressionsLoader#19531
romani merged 1 commit into
checkstyle:masterfrom
Carbon14-48:issue-19525-fix-pitest-suppressionsloader

Conversation

@Carbon14-48

@Carbon14-48 Carbon14-48 commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

closes #19525

Problem:

8 pitest mutations in SuppressionsLoader were surviving. Tests only checked if filter count was 1, but didn't verify which DTD was loaded. When a map.put() was mutated, the parser fell back to fetching the DTD from a network URL, making tests pass incorrectly.

Fix:

Changed the 4 XML test files to use a non-existent DTD url. Now when a map.put() mutation removes the local DTD mapping, the parser has no valid fallback and the test fails, properly killing the mutation. Removed all 8 suppressions.

@Carbon14-48 Carbon14-48 force-pushed the issue-19525-fix-pitest-suppressionsloader branch from defaca9 to f767ac0 Compare March 30, 2026 03:14

@romani romani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot

@romani romani merged commit 3b8738f into checkstyle:master Mar 30, 2026
122 of 123 checks passed
@Carbon14-48 Carbon14-48 deleted the issue-19525-fix-pitest-suppressionsloader branch April 1, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix pitest in SuppressionsLoader

2 participants