OpenCppCoverage
OpenCppCoverage copied to clipboard
Why can hit count only be 0 or 1?
Describe your environment
- Version of OpenCppCoverage: 0.9.7.0
- Architecture (x86/ x64): x64
- Windows version: 10
Hi, i am sorry if this is the wrong way, but i see no other option to communicate with you guys.
The question i have is the following: It is about the "hit" count for covered lines. As i understand it, it can only either be "1" = covered or "0" = uncovered. I would have expected this to be the number of times the control flow went over the line. So when a line was executed 20 times, it would say hits="20". Is this something that would technically be feasible? If so, could you add it to a wish list? :-)
Hello,
Hi, i am sorry if this is the wrong way, but i see no other option to communicate with you guys.
This is the right way to communicate :)
As i understand it, it can only either be "1" = covered or "0" = uncovered.
Do you speak about Cobertura export? OpenCppCoverage was not designed to count the number of times a line is executed (It will be too slow). Supporting this feature means rewriting the coverage module which is not planned. Cobertura is not an OpenCppCoverage format and OpenCppCoverage sets only to "1" or "0" as it does not have this information.
I hope it will help,
OpenCppCoverage