question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

First line of nested class declared as not covered

See original GitHub issue

Pull 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:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
hcolescommented, Dec 5, 2022

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.

2reactions
hcolescommented, Dec 5, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found