Skip to content

Issue #13109: Kill mutation for UnusedImportCheck-2#13230

Merged
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:uic2
Jun 18, 2023
Merged

Issue #13109: Kill mutation for UnusedImportCheck-2#13230
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:uic2

Conversation

@Kevin222004
Copy link
Copy Markdown
Contributor

@Kevin222004 Kevin222004 commented Jun 15, 2023

Issue #13109: Kill mutation for UnusedImportCheck-2


Check :
https://checkstyle.org/config_imports.html#UnusedImports


Mutation covered

<mutation unstable="false">
<sourceFile>UnusedImportsCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck</mutatedClass>
<mutatedMethod>collectReferencesFromJavadoc</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.NakedReceiverMutator</mutator>
<description>replaced call to java/util/stream/Stream::filter with receiver</description>
<lineContent>.filter(JavadocTag::canReferenceImports)</lineContent>
</mutation>


Explaination

Test added


Regression

Diff Regression config: https://gist.githubusercontent.com/Kevin222004/27bfdb307fbeb7459ca132bcc5104c5b/raw/0d6a50d1d09d825a0947355e7ba1af3f80d94d74/UnusedImport.xml
Diff Regression projects: https://gist.githubusercontent.com/Kevin222004/9600f179b602d4c971bdb0a050099005/raw/360a95ed7bb60d7a0956e531199d484c4d6f6617/test-projects.properties
Report label: R2

@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

@github-actions
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
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

@Kevin222004
Copy link
Copy Markdown
Contributor Author

can you please re-run circle-ci

@romani
Copy link
Copy Markdown
Member

romani commented Jun 18, 2023

Link check is resolved , just rebase, it is not related CI execution to your update, we will ignore it.

Copy link
Copy Markdown
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.

Last item:

Copy link
Copy Markdown
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 do me last favor:

@romani
Copy link
Copy Markdown
Member

romani commented Jun 18, 2023

After fix , please rebase to avoid CI failure

Copy link
Copy Markdown
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

@romani romani merged commit 47ba544 into checkstyle:master Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants