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
Issue #12275: Resolve Pitest suppression for EmptyForInitializerPad-2 #12277
Conversation
Report of killed Mutation |
Ok, such code most likely existed for some good reason we need to find such java code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Items
...main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/EmptyForInitializerPadCheck.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Items
...main/java/com/puppycrawl/tools/checkstyle/checks/whitespace/EmptyForInitializerPadCheck.java
Show resolved
Hide resolved
Github, generate report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok to merge
https://checkstyle.org/config_whitespace.html#EmptyForInitializerPad
If nothing changes on new regression, prove to me you stepped through the source and there is no way to create an input file to kill this mutation and changing production code is the only option. To me it seems odd that we are removing references to a |
Github, generate report |
@rnveach please look at the updated config |
Updated config is better. It shows there is still no regression. |
AST structure might be changed from initial implementation. I think we are good to merge this, in most worse case, user will report issue and we will fix it with full knowledge. |
@rnveach @romani if it is not looking good then we can make changes like this #12277 (review) |
In short, there is no input file we can create here. In this case AST is This failed to be done because of this check and the way our ASTs are formed.
creates:
We have both tokens appear to be on the same line/column. It doesn't matter if there is comments inside the Since we can't get these 2 tokens to have different line/column, there isn't a way to kill the mutation as it is now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 minor change.
Issue #12275: Resolve Pitest suppression for EmptyForInitializerPad-2
Diff Regression config: https://gist.githubusercontent.com/Kevin222004/a85bd5c1897e158b6495850ba792bf4b/raw/37385b138ced4f80b43ccf865900a812500f4f42/config.xml