GCC Code Coverage Report


Directory: A/
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 75.0% 3 / 0 / 4
Functions: 100.0% 1 / 0 / 1
Branches: 50.0% 1 / 0 / 2
Conditions: 50.0% 1 / 0 / 2

file1.cpp
Line Branch Condition Exec Source
1 1 int foo(int param)
2 {
3
1/2
✗ Branch 2 → 3 not taken.
✓ Branch 2 → 4 taken 1 time.
1/2
✗ True not covered.
1 if (param) {
4 return 1;
5 } else {
6 1 return 0;
7 }
8 }
9