Quantcast
Channel: Intel® C++-Compiler
Viewing all articles
Browse latest Browse all 1665

code coverage: what type of coverage is actually done?

$
0
0

I'm using the codecov tool. One question: what kind of coverage is actually computed on block level?

We would like to state that we have 100% branch coverage (C1 in the literature). My question is how codecov handles the situation where an if statement does not have an else clause? E.g.,

if (decision)
{
    SOME CODE STATEMENTS
}

Will the block coverage reported for this block be 100% if we just test the case with decision = true, or is both true and false required for 100% block coverage?


Viewing all articles
Browse latest Browse all 1665

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>