-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kill survivng mutation in DefaultComesLastCheck.java #12889
Comments
@romani |
This issue is open for other interested candidates to work on as I am busy with other important PRs. |
I will work on this issue. |
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/DefaultComesLastCheck.java Lines 215 to 228 in 2e99aca
The pitest will fail after timeout or out of memory if the code((Line 223) is changed to node = node; . I think this suppressed mutation cannot be removed because it is kind of the halting problem to add code to check if the loop is infinite or not. Additionally, can't kill this mutation without redundant code. I don't think it is worth to add one more condition to while only for one mutation test.
I guess this issue can be closed. |
Pitest catching infinite loops and out of memory, this tool is well aware of damages it might do. |
@jxr98 please explain how you concluded that this is what the code is mutated to. According to the documentation for this mutator, it should be mutated to |
I thought this mutator just removed |
Fix was merged |
Kill mutation:
checkstyle/config/pitest-suppressions/pitest-coding-1-suppressions.xml
Lines 30 to 37 in 54df97c
The text was updated successfully, but these errors were encountered: