-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7903842: Negative coverage in report for records #48
base: master
Are you sure you want to change the base?
Conversation
/reviewer credit @shurymury |
👋 Welcome back lkuskov! A progress list of the required criteria for merging this PR into |
@lkuskov This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
@lkuskov |
Can you please add a test similar to one added by https://bugs.openjdk.org/browse/CODETOOLS-7903867? |
Please note that the regular report is also showing negative coverage, not only the javap report. Does this fix addresses both reports? Is the root cause the same for the two reports or different? If you will integrate this, you will need to open another bug for the regular report. |
FYI: I have created a test for this problem (only javap report, for now): #52 |
@lkuskov This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
@lkuskov This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
/open |
@lkuskov This pull request is now open |
I think it would be better to rename "line coverage" to "instruction coverage" in this report. Some other word can be used, but "instruction" is the best I can come up with. The reasons are:
|
The test added by https://bugs.openjdk.org/browse/CODETOOLS-7903867 is only checking that there is no negative coverage. An update to it is needed to check that the right coverage is reported. |
@dbessono What are your thoughts on "line coverage" vs "instruction coverage"? |
The term 'code line' (line of 4.7.3. The Code Attribute) or the simplified 'line' is intuitively clear and sufficient to be used there. All lines that can't be covered in the javap report don't have green or red markings like comment lines in Java sources and are clearly excluded from the meaning of covered/non-covered. |
While not being deep in the context it seems that the report body was not reworked to show something else than code lines containing code instructions. The report still renders lines marked as green or red, not the specific instructions highlighted in green or red. Another thing to note is that the reported bug looks related to incorrect calculations, not to the column naming. So any suggested renaming might better go under a different suggested enhancement? |
The Javap report had several issues marked in the picture below, which have been fixed:
The expected report is:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jcov.git pull/48/head:pull/48
$ git checkout pull/48
Update a local copy of the PR:
$ git checkout pull/48
$ git pull https://git.openjdk.org/jcov.git pull/48/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 48
View PR using the GUI difftool:
$ git pr show -t 48
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jcov/pull/48.diff
Webrev
Link to Webrev Comment