GCC Code Coverage Report


A/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
20 of 34, 0 excluded
58.8%
Functions:
6 of 9, 0 excluded
66.7%
Branches:
4 of 10, 0 excluded
40.0%

Overall list of functions
File
Lines
Functions
Branches
3 of 4 lines, 0 excl (75.0%)
75.0%
1 of 1 functions, 0 excl
100.0%
1 of 2 branches, 0 excl
50.0%
3 of 4 lines, 0 excl (75.0%)
75.0%
1 of 1 functions, 0 excl
100.0%
1 of 2 branches, 0 excl
50.0%
3 of 4 lines, 0 excl (75.0%)
75.0%
1 of 1 functions, 0 excl
100.0%
1 of 2 branches, 0 excl
50.0%
4 of 9 lines, 0 excl (44.4%)
44.4%
1 of 2 functions, 0 excl
50.0%
0 of 2 branches, 0 excl
0.0%
3 of 4 lines, 0 excl (75.0%)
75.0%
1 of 1 functions, 0 excl
100.0%
1 of 2 branches, 0 excl
50.0%
0 of 2 lines, 0 excl (0.0%)
0.0%
0 of 1 functions, 0 excl
0.0%
0 of 0 branches, 0 excl
-%
4 of 7 lines, 0 excl (57.1%)
57.1%
1 of 2 functions, 0 excl
50.0%
0 of 0 branches, 0 excl
-%

A/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
3 of 4, 0 excluded
75.0%
Functions:
1 of 1, 0 excluded
100.0%
Branches:
1 of 2, 0 excluded
50.0%

C/D/File6.cpp
Line Branch Exec Source
1 1 int foo6(int param)
2 {
3
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (param) {
4 return 1;
5 } else {
6 1 return 0;
7 }
8 }
9

A/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
3 of 4, 0 excluded
75.0%
Functions:
1 of 1, 0 excluded
100.0%
Branches:
1 of 2, 0 excluded
50.0%

C/file5.cpp
Line Branch Exec Source
1 1 int foo5(int param)
2 {
3
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (param) {
4 return 1;
5 } else {
6 1 return 0;
7 }
8 }
9

A/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
3 of 4, 0 excluded
75.0%
Functions:
1 of 1, 0 excluded
100.0%
Branches:
1 of 2, 0 excluded
50.0%

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

A/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
3 of 4, 0 excluded
75.0%
Functions:
1 of 1, 0 excluded
100.0%
Branches:
1 of 2, 0 excluded
50.0%

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

A/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
4 of 9, 0 excluded
44.4%
Functions:
1 of 2, 0 excluded
50.0%
Branches:
0 of 2, 0 excluded
0.0%

file3.cpp
Line Branch Exec Source
1 1 int four_bar()
2 {
3 1 int x=1;
4 1 int y=2;
5 1 return x+y;
6 }
7
8 int four_bar_()
9 {
10 int x=1;
11 if (x)
12 return 2*x; /* This is a really long comment that confirms whether gcovr colors lines that exceed normal expectations. */
13 else
14 return x;
15 }
16

A/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
0 of 2, 0 excluded
0.0%
Functions:
0 of 1, 0 excluded
0.0%
Branches:
0 of 0, 0 excluded
-%

file7.cpp
Line Branch Exec Source
1 int uncovered()
2 {
3 return 0;
4 }
5

A/
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
4 of 7, 0 excluded
57.1%
Functions:
1 of 2, 0 excluded
50.0%
Branches:
0 of 0, 0 excluded
-%

subdir_0/subdir_1/subdir_2/subdir_3/subdir_4/subdir_5/subdir_6/subdir_7/subdir_8/subdir_9/File2.cpp
Line Branch Exec Source
1 1 int bar()
2 {
3 1 int x=1;
4 1 int y=2;
5 1 return x+y;
6 }
7
8 int bar_()
9 {
10 int x=1;
11 return 2*x;
12 }
13