First line of nested class declared as not covered
See original GitHub issuePull request PicnicSupermarket/error-prone-support#378 upgrades Pitest from version 1.9.11 to version 1.10.0. When comparing the coverage report before and after the upgrade, we see one tiny difference, visible in the screenshots shown here.
To reproduce:
git clone git@github.com:PicnicSupermarket/error-prone-support.git
cd error-prone-support
./run-mutation-tests.sh
firefox error-prone-contrib/target/pit-reports/tech.picnic.errorprone.bugpatterns/FormatStringConcatenation.java.html
git checkout origin/renovate/org.pitest-pitest-maven-1.x
./run-mutation-tests.sh
firefox error-prone-contrib/target/pit-reports/tech.picnic.errorprone.bugpatterns/FormatStringConcatenation.java.html
# Now, compare the results.
Since highlighting the line in red doesn’t seem actionable, I assume this is a minor regression; thought I’d share 😃
Thanks for the great software!
Issue Analytics
- State:
- Created 10 months ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Java inner class and static nested class - Stack Overflow
A nested class is a class which is contained in another class at the source code level. It is static if you declare...
Read more >Code Coverage on Inner Class/Variable Declarations
The line containing strFirstName does not require coverage because you only declare the variable, but do not instantiate it.
Read more >Nested Classes - Learning the Java Language
As a member of the OuterClass , a nested class can be declared private , public , protected , or package private. (Recall...
Read more >Nested Classes in Java - GeeksforGeeks
As a member of its enclosing class, a nested class can be declared private, public, protected, or package private(default).
Read more >Nested Class In Java - The Blog
Nested classes that are declared static are called static nested classes. Non-static ... Top level class can not be declared as static ....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Additional issue identified in the 1.10.x releases where lines that have more than one debug entry in the bytecode were being double counted. 1.10.3 will be the first (hopefully) usable release in the 1.10 series.
1.10.2 is now released. The behaviour is still different from 1.9.x in that synthetic mehods that are not lambas are excluded as code lines. I am hoping I don’t regret that, but I believe it is the correct behaviour as I’m not aware of any other corner cases.