GCC Code Coverage Report


nested/subdir/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
8 of 8, 0 excluded
100.0%
Functions:
1 of 1, 0 excluded
100.0%
Branches:
2 of 4, 0 excluded
50.0%
Conditions:
2 of 4, 0 excluded
50.0%

B/main.cpp
Line Branch Condition Exec Source
1 #include <iostream>
2
3 extern int foo(int param);
4 extern int foobar(int param);
5 extern int bar();
6 extern int four_bar();
7 extern int foo5(int param);
8 extern int foo6(int param);
9 extern int uncovered();
10
11
12 1 int main(int argc, char* argv[]) {
13 1 foo(0);
14 1 foobar(1);
15 1 bar();
16 1 four_bar();
17 1 foo5(0);
18
2/4
✓ Branch 7 → 8 taken 1 time.
✗ Branch 7 → 10 not taken.
✓ Branch 8 → 9 taken 1 time.
✗ Branch 8 → 10 not taken.
2/4
✗ Condition 0: False not covered.
✗ Condition 1: False not covered.
1 if (argc != 0) { if (argv[0] != 0) { foo6(0); } }
19
20 1 return 0;
21 }
22