Negative sequence point coverage when line executions exceed int.MaxValue
See original GitHub issuePackage: coverlet.msbuild Version: 3.1.0 Format: opencover
In a project where a particular line of code gets called a lot, the sequence point coverage value for that line can become negative if the line is hit more than int.MaxValue
times. The value in the XML is negative and shows in the generated report as uncovered.
I created a simple repro of this because I cannot show the actual code that caused the problem (it’s from my job).
XML:
Report:
Repro code: https://github.com/Malivil/Coverlet1266Repro
Issue Analytics
- State:
- Created 2 years ago
- Comments:9
Top Results From Across the Web
How do I generate random integers within a specific range ...
MAX_VALUE it is possible to overflow ,resulting into a java.lang.IllegalArgumentException . You can try with : randInt(0, Integer.MAX_VALUE) .
Read more >Java Basics - Java Programming Tutorial
An int variable stores an integer (or whole number or fixed-point number); a double variable stores a floating-point number (or real number); a...
Read more >The GNU C Reference Manual
An integer constant is a sequence of digits, with an optional prefix to denote a number base ... Full coverage of operators can...
Read more >Pascal - Quick Guide
Pascal variables are declared outside the code-body of the function which means they are not declared within the begin and end pairs, but...
Read more >XPath and XQuery Functions and Operators 3.1
[Definition] An execution scope is a sequence of calls to the function library during which certain aspects of the state are required to...
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
Then should we go with this solution? I could prepare a PR in the next days.
Thanks for reporting and thanks for the repro. 🙏