Skip to content
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 - CustomImportOrderCheck (5) #7806

Closed
rnveach opened this issue Mar 8, 2020 · 3 comments
Closed

Resolve Pitest Issues - CustomImportOrderCheck (5) #7806

rnveach opened this issue Mar 8, 2020 · 3 comments

Comments

@rnveach
Copy link
Member

rnveach commented Mar 8, 2020

Child issue of #7797 ,

"CustomImportOrderCheck.java.html:<td class='covered'><pre><span class='survived'> || length == betterMatchCandidate.matchLength</span></pre></td></tr>"

@wltan
Copy link
Contributor

wltan commented Mar 11, 2020

I am on it. Claiming this as well because it appears to be very closely related to #7802.

  • Both issues are part of a single boolean expression
  • They are connected by a && operator and the mutations survive when either one is hardcoded to false, so any fix is likely to affect both issues at once

wltan added a commit to wltan/checkstyle that referenced this issue Mar 11, 2020
wltan added a commit to wltan/checkstyle that referenced this issue Mar 11, 2020
@wltan
Copy link
Contributor

wltan commented Mar 11, 2020

Pitest report:
https://wltan.github.io/checkstyle-reports/2020-03-11/customimport-pitest1/com.puppycrawl.tools.checkstyle.checks.imports/CustomImportOrderCheck.java.html#grouporg.pitest.mutationtest.report.html.SourceFile@4d2b49be_815

Surviving mutation:
removed conditional - replaced equality check with false → SURVIVED

Hardcoded mutation:
wltan@ab81da3

Even though #7802 had no discrepancies in regression, I will run it again here just to be sure that there are no additional cases. Regression:
https://wltan.github.io/checkstyle-reports/2020-03-11/pitest5-regression/diff/

No discrepancies found but see #7802 (comment) and/or #7826 for more information on possible UT cases.

@rnveach
Copy link
Member Author

rnveach commented Mar 12, 2020

Fix was merged via #7802

@rnveach rnveach closed this as completed Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants