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

Issue #11446: Update CheckerTest method testUnmappableCharacters #14492

Conversation

chrccl
Copy link
Contributor

@chrccl chrccl commented Feb 16, 2024

Issue #11446: Update CheckerTest method testUnmappableCharacters

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Items

@chrccl chrccl force-pushed the update-testUnmappableCharacthers-method-of-checkertest branch 2 times, most recently from 7314b14 to 01b7ebc Compare February 17, 2024 11:14
@chrccl chrccl requested a review from romani February 17, 2024 11:17
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok to merge if CI pass

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please investigate test coverage reduction
https://github.com/checkstyle/checkstyle/actions/runs/7941288117/job/21683472819?pr=14492

it is blocker to merge

@chrccl chrccl force-pushed the update-testUnmappableCharacthers-method-of-checkertest branch 3 times, most recently from 6edb023 to d021f7f Compare February 19, 2024 09:23
@chrccl chrccl force-pushed the update-testUnmappableCharacthers-method-of-checkertest branch from d021f7f to 0b66794 Compare February 19, 2024 09:23
@chrccl chrccl requested a review from romani February 19, 2024 11:01
@chrccl
Copy link
Contributor Author

chrccl commented Feb 20, 2024

@romani ping

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Items

<mutatedClass>com.puppycrawl.tools.checkstyle.Checker</mutatedClass>
<mutatedMethod>setCharset</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable charset</description>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this is not acceptable.
We can only remove mutation survival, extension is not allowed.
Please investigate why it happened.

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

item:

checkerConfig.addProperty("charset", "IBM1098");

verify(checkerConfig, getPath("InputCheckerTestCharset.java"), expected);
verifyWithInlineConfigParser(getPath("InputCheckerTestCharset.java"), expected);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please reuase verifyWithInlineXmlConfig method, it fully supports xml configs

@romani
Copy link
Member

romani commented Mar 16, 2024

@chrccl , ping

@nrmancuso
Copy link
Member

We have lost contact with author, anyone is welcome to reuse changes here to close the issue.

@nrmancuso nrmancuso closed this Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants