Closed Vladyyy closed 5 months ago
Total should be equal to the sum of all the (non-deleted) coverpoints: UBC + CBC + LBC + + GBC + UIC + UNC + GNC +GIC That is: the sum of all the baseline coverpoints which still exist, plus all the new coverpoints created by newly added code as well as those created by changed compiler directives (say).
Thanks, that makes sense.
A follow-up question: Does CBC / (CBC + UBC) * 100 represent the coverage percentage for the baseline
The short answer is "not quite":
Of course, some of those categories may be empty - depending on what changed in your code and configuration.
This is discussed (to some degree) in the IEEE paper referred in the README - primarily in the section which talks about coverage criteria. The context of that discussion if how some more sophisticated module-, directory- or file-specifc criteria can be verified and enforced.
Thanks, this was helpful.
his is discussed (to some degree) in the IEEE paper referred in the README - primarily in the section which talks about coverage criteria.
I did read the paper and watched you presentation
See the examples provided below:![image](https://github.com/linux-test-project/lcov/assets/51840210/8b797d82-b83b-41b7-8e82-437ad09a45d4)
I would expect that
UBC + CBC = Total
but that is not the case. In the example 243716 != 71615 + 171445 - > 243716 != 243060Is my
UBC + CBC = Total
assumption wrong ?