GCC Code Coverage Report


../
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
3 / 4
75.0%
Branches:
1 / 2
50.0%
Conditions:
1 / 2
50.0%
Functions:
1 / 1
100.0%

project/src/main.cpp
Line Branch Condition Exec Source
1 bool no(bool);
2 int yes(int);
3
4 1 int main(int argc, char *argv[])
5 {
6
1/2
✗ Branch 3 → 4 not taken.
✓ Branch 3 → 6 taken 1 time.
1/2
✗ True not covered.
1 if (no(true)) {
7 ✗ return yes(7);
8 }
9 else {
10 1 return yes(10);
11 }
12 }
13