Skip to content

Issue #13501: Kill mutation for RequireEmptyLineBeforeBlockTagGroupCheck#13557

Merged
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:Require1
Aug 22, 2023
Merged

Issue #13501: Kill mutation for RequireEmptyLineBeforeBlockTagGroupCheck#13557
romani merged 1 commit intocheckstyle:masterfrom
Kevin222004:Require1

Conversation

@Kevin222004
Copy link
Copy Markdown
Contributor

@Kevin222004 Kevin222004 commented Aug 16, 2023

Issue #13501: Kill mutation for RequireEmptyLineBeforeBlockTagGroup


Check :-

https://checkstyle.org/checks/javadoc/requireemptylinebeforeblocktaggroup.html#RequireEmptyLineBeforeBlockTagGroup


Mutation

<mutation unstable="false">
<sourceFile>RequireEmptyLineBeforeBlockTagGroupCheck.java</sourceFile>
<mutatedClass>com.puppycrawl.tools.checkstyle.checks.javadoc.RequireEmptyLineBeforeBlockTagGroupCheck</mutatedClass>
<mutatedMethod>hasInsufficientConsecutiveNewlines</mutatedMethod>
<mutator>org.pitest.mutationtest.engine.gregor.mutators.RemoveConditionalMutator_ORDER_IF</mutator>
<description>removed conditional - replaced comparison check with true</description>
<lineContent>while (count &lt;= 1</lineContent>
</mutation>


Explaination

The removed condition is only for break (Bad side affect)


Regression :-


Diff Regression config: https://gist.githubusercontent.com/Kevin222004/9ee46058f8167a1f6118a5fa7f3baf1f/raw/ad9ecf2e08cafdecfc1d16ada9430e4fbd8f77a6/RequireEmptyLineBeforeBlockTagGroup.xml
Diff Regression projects: https://gist.githubusercontent.com/Kevin222004/9600f179b602d4c971bdb0a050099005/raw/360a95ed7bb60d7a0956e531199d484c4d6f6617/test-projects.properties
Report label: Regression-2

@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

@Kevin222004
Copy link
Copy Markdown
Contributor Author

Github, generate report

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

@github-actions
Copy link
Copy Markdown
Contributor

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

Yes, pitest is micro-performance killer.

But I hope our feedback to pitest project can help to improve it to skip mutation that are in loops expression.

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!

I wonder if there is some testing framework to have granular control over time complexity. All I could find was some ideas and most of the folks using time in millis to do shallow testing.

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