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 suppression for misc profile #12314

Closed
Kevin222004 opened this issue Oct 19, 2022 · 1 comment
Closed

Resolve Pitest suppression for misc profile #12314

Kevin222004 opened this issue Oct 19, 2022 · 1 comment

Comments

@Kevin222004
Copy link
Collaborator

Related to #7797

kill mutation

<mutation unstable="false">
<sourceFile>NewlineAtEndOfFileCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck</mutatedClass>
<mutatedMethod>setLineSeparator</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to java/lang/String::toUpperCase with receiver</description>
<lineContent>.toUpperCase(Locale.ENGLISH));</lineContent>
</mutation>

and
<mutation unstable="false">
<sourceFile>NewlineAtEndOfFileCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.NewlineAtEndOfFileCheck</mutatedClass>
<mutatedMethod>setLineSeparator</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to java/lang/String::trim with receiver</description>
<lineContent>Enum.valueOf(LineSeparatorOption.class, lineSeparatorParam.trim()</lineContent>
</mutation>

@romani
Copy link
Member

romani commented Oct 21, 2022

Fix is merged

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