Issue #13321: Kill mutation for DetectorOption#13412
Merged
romani merged 1 commit intocheckstyle:masterfrom Aug 9, 2023
Merged
Issue #13321: Kill mutation for DetectorOption#13412romani merged 1 commit intocheckstyle:masterfrom
romani merged 1 commit intocheckstyle:masterfrom
Conversation
Contributor
Author
|
Github, generate report |
Contributor
|
Report generation failed on phase "make_report", |
Contributor
Author
|
Github, generate report |
Contributor
Contributor
Author
|
Github, generate report |
Contributor
|
Report generation failed on phase "make_report", |
Contributor
Author
|
Github, generate report |
Contributor
|
Report generation failed on phase "make_report", |
romani
requested changes
Jul 29, 2023
...pycrawl/tools/checkstyle/checks/regexp/regexpsingleline/InputRegexpSinglelineSemantic10.java
Outdated
Show resolved
Hide resolved
romani
requested changes
Jul 30, 2023
src/main/java/com/puppycrawl/tools/checkstyle/checks/regexp/DetectorOptions.java
Show resolved
Hide resolved
61 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #13321: Kill mutation for DetectorOption
Mutation
checkstyle/config/pitest-suppressions/pitest-regexp-suppressions.xml
Lines 3 to 10 in 2335aba
Explaination
It is some inner class, and all fields already not initialized, so with such update we do implementation consistent.
All the time whenever we use this message field in check we use the build method and the build method is
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/checks/regexp/DetectorOptions.java
Lines 246 to 250 in 2335aba
message is set like
message = Optional.ofNullable(message).orElse("");so if the message is null then it will be""empty string so removal will not make issueRegression :-
Diff Regression config: https://gist.githubusercontent.com/Kevin222004/af6965cd82853221b89f6ba3b81b996a/raw/89f2f0efe08703af1c3c9b9f3b5d2330a064dea3/RegexpSingleline.xml
Diff Regression projects: https://gist.githubusercontent.com/Kevin222004/9600f179b602d4c971bdb0a050099005/raw/360a95ed7bb60d7a0956e531199d484c4d6f6617/test-projects.properties
Report label: Regression-2