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 - IllegalImportCheck (1) #7854
Comments
Hey ! Have you started worked on this isuue! if not can you please do the other one Resolve Pitest Issues - IllegalImportCheck (3) beacause by mistake i worked on this and solved it |
1.Pitest Report
2.Mutated Branch
3. Regression Report
4. Regression and code LogicAlthough there is no diff found in Regression diff report, I find that the reason why the surviving mutation exists is maybe due to the reason as follows: If we keep the regexp value always set then it will anyway matches the classes or packages names. So therefore this is the cause of mutation as keeping the regex value always true works as regex will matches the whole package or class name. Although i figured out a test case :
Keeping the regex true value here will match all the imports beginning Adding the above test-case Killed the mutation Pitest-report : https://akki111singh.github.io/pit-reports2/202003202255/com.puppycrawl.tools.checkstyle.checks.imports/IllegalImportCheck.java.html on line 440 : 3. removed conditional - replaced equality check with true → SURVIVED -> The mutation is killed |
@rnveach please review |
Everything looks good to me. |
Fix is merged |
Child issue of #7797 ,
checkstyle/.ci/pitest.sh
Line 82 in abf829f
The text was updated successfully, but these errors were encountered: