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 (7) #7878
Comments
i would like to work on this. |
i have observed something but not sure if i am correct;
An import could be either of type or static Please have a look at these images (at line 859) I am not sure if i am right please have a look and let me know if there is something i missed or if this is the wrong approach. |
There is either
You need to either add test case that will cover it, or prove that variable can be removed without breaking check logic. |
@aryaniiit002 Please read parent issue's instructions. All must be provided and will guide you on the best action for this pitest issue.
|
i don't understand how test cases works exactly. |
Please respond somebody... |
@aryaniiit002 tests are passing if you remove this condition - this is exactly the problem in this issue. It is either lack of test to cover this, or this condition is redundant (requires checking of logic) |
Yes i read the link and i am sure i don't understand few lines there and also i think i misunderstood
|
@aryaniiit002 See a mutation can be killed if you add a test case that fails when we change the code logic written in the mutation report. in your case ( You can always set a breakpoint on the part where your mutatioins are survived and take look at all the variables at that time how they are behaving with different test cases with the debugger. |
Fix is merged. |
Child issue of #7797 ,
checkstyle/.ci/pitest.sh
Line 92 in abf829f
The text was updated successfully, but these errors were encountered: