Skip to content

Issue #13109: Kill mutation for NestedTryDepthCheck#13238

Merged
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:NestedTryDepthCheck
Jun 24, 2023
Merged

Issue #13109: Kill mutation for NestedTryDepthCheck#13238
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:NestedTryDepthCheck

Conversation

@Kevin222004
Copy link
Copy Markdown
Contributor

@Kevin222004 Kevin222004 commented Jun 16, 2023

Issue #13109: Kill mutation for NestedTryDepthCheck

Check :-

https://checkstyle.org/config_coding.html#NestedTryDepth


Mutation

<mutation unstable="false">
<sourceFile>NestedTryDepthCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.coding.NestedTryDepthCheck</mutatedClass>
<mutatedMethod>beginTree</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.experimental.MemberVariableMutator</mutator>
<description>Removed assignment to member variable depth</description>
<lineContent>depth = 0;</lineContent>
</mutation>


Explaination

All the values will increase by visit token and decrement by leave Token so I don't see we should require to reset the value using beginTree because at the end it will be reset by leaveToken
but lets see Regression


Regression

Report-1 :- https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/dac5a8c_2023201111/reports/diff/index.html

Report-2 :- https://checkstyle-diff-reports.s3.us-east-2.amazonaws.com/dac5a8c_2023225538/reports/diff/index.html


Diff Regression config: https://gist.githubusercontent.com/Kevin222004/1a5e00ff61776c73c881b8752b0495a0/raw/77a12ab981e96fabfcd4b674d3f8d825df3ea946/NestedTry.xml
Diff Regression projects: https://gist.githubusercontent.com/Kevin222004/21e3934e85f802e2fbd48af06d122364/raw/604256badd733d8568064f371d55657c04b00dfd/test-projects-2.properties
Report label: R2

@Kevin222004 Kevin222004 changed the title Issue #13109: Kill mutation for NestedForDepthCheck Issue #13109: Kill mutation for NestedTryDepthCheck Jun 16, 2023
@Kevin222004 Kevin222004 force-pushed the NestedTryDepthCheck branch from 1a526e5 to dac5a8c Compare June 16, 2023 18:33
@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

@github-actions
Copy link
Copy Markdown
Contributor

@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.

Ok to merge

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

@Kevin222004 Kevin222004 force-pushed the NestedTryDepthCheck branch from f29a6d3 to 6b61797 Compare June 19, 2023 14:39
Copy link
Copy Markdown
Member

@rdiachenko rdiachenko left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Member

@Vyom-Yadav Vyom-Yadav left a comment

Choose a reason for hiding this comment

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

LGTM!

@Vyom-Yadav Vyom-Yadav assigned romani and unassigned Vyom-Yadav Jun 23, 2023
@romani romani merged commit 30fab59 into checkstyle:master Jun 24, 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.

4 participants