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
Resolve Pitest Issues - ImportOrderCheck (3) #7874
Comments
@SunJiFengPlus , I removing you from assignments, as you need to start from "gsoc first issue", there is not any PR in three days, you should not block issue to resolve. |
I'm on it! |
Pitest Report: https://nmancus1.github.io/Issue-7874/com.puppycrawl.tools.checkstyle.checks.imports/ImportOrderCheck.java.html#org.pitest.mutationtest.report.html.SourceFile@7ea147e3_820 I'm going to try more configs to track this down and update this comment with another report. |
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/ImportOrderCheck.java Lines 820 to 822 in 2625cbb
This code is redundant, but I'm not sure it should be removed. This:
passes |
Pitest report, mutation branch, and regression look good from what I see.
Please explain more. Since you are now talking about changing code or removing code, we need to have a deeper analysis of why code isn't working like it was probably intended. I suggest walking through the mutated branch where a case goes to opposite condition that the normal code would have prevented and see why the change makes no difference to violations. The line in question is directly connected to a user property and just from a glance at the code, looks like pitest is saying to ignore this option. Why? What are the values of |
Thanks for encouraging me to dig deeper. I have found a case. When we have two static imports like this:
When evaluated by The trick was that I need to figure out container names that would evaluate to a value of a different sign to change the outcome of the method. |
Here is my fix: nrmancuso@63bd1e4 Let me know if we're good, then I'll submit a PR with the line removed from |
@nmancus1 If you have found a case that kills pitest mutation without rewriting code, then you are free to start a PR to close this issue. |
Fix is merged |
Child issue of #7797 ,
checkstyle/.ci/pitest.sh
Line 88 in abf829f
The text was updated successfully, but these errors were encountered: