branchpeitto
Branchpeitto, commonly rendered as branch coverage, is a software testing metric that evaluates whether all possible branches of a program’s control flow have been executed at least once by a test suite. It is a form of code coverage that complements statement coverage by focusing on decision points such as if statements, switch cases, and loop conditions.
Measurement of branchpeitto involves instrumenting the code to record each outgoing path from a decision point.
Branchpeitto is related to other coverage metrics. It generally yields higher coverage than statement coverage, since
Limitations of branchpeitto include that full branch coverage does not guarantee the absence of defects, particularly