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 #12251: Resolve Pitest suppression for AbstractParenPadCheck #12258
Conversation
Now we can't remove or make any changes to this Method
a) the trim function will work here as like
as the output of this code we will get only space which is good b) if we remove the trim function the and set the property
it will give us the error like
a) currently in our testing case all the test case which are available now to kill this mutation i have create the test file with |
You do not show what the mutated code looks like. I wish to confirm you understand the mutation by seeing the actual code representation, so please provide this. For example, assume the original code is I am not saying what you provided for this PR is not correct, I just want to verify you understand what pitest is doing as there will be more like this.
Just nitpicking, but you say there is two 3s and neither one connect with the number 3 in the thought process issue but you provided your own way that it makes sense to me what your doing. 3 in the thought process is about running actual regression on external projects ( https://github.com/checkstyle/contribution/tree/master/checkstyle-tester#checkstyle-pitest-regression ) . 4 is about what to do for what regression reported back. Since you provided a PR, and the PR looks like it is passing, I am fine skipping the regression. |
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.
CI will show if mutation is resolved, so it is passing proves that.
1 minor item asked for above, and just 1 minor change requested.
src/test/java/com/puppycrawl/tools/checkstyle/checks/whitespace/ParenPadCheckTest.java
Outdated
Show resolved
Hide resolved
7a91f5e
to
6df36cb
Compare
6df36cb
to
5f69df2
Compare
Ok I have understood what you are exactly asking for |
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.
Awesome hack in config
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.
@Kevin222004 it might be a good idea to search pitest suppressions for trim
and see if we can do similar hack in other check properties.
Issue #12251: Resolve Pitest suppression for AbstractParenPadCheck