GCC Code Coverage Report
.
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
9 / 9
100.0%
Branches:
4 / 6
66.7%
Decisions:
3 / 4
75.0%
Functions:
2 / 2
100.0%
List of functions
Function (File:Line)
Calls
Lines
Branches
Blocks
_ZN3Foo4workEi (main.cpp:5)
called 1 time
100.0%
66.7%
81.0%
main (main.cpp:14)
called 1 time
100.0%
-%
100.0%
main.cpp
7 covered
2 partial covered
Line
Branch
Decision
Exec
Source
1
#include
<vector>
2
3
class
Foo
{
4
public
:
5
1
void
work
(
int
arg
)
{
6
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1/2
✓ Decision 'true' taken 1 time.
✗ Decision 'false' not taken.
1
if
(
arg
<
2
)
{
7
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1
std
::
vector
<
int
>
tmp
{
0
,
0
};
8
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 1 time.
2/2
✓ Decision 'true' taken 2 times.
✓ Decision 'false' taken 1 time.
3
for
(
int
i
:
tmp
)
{
9
}
10
1
}
11
1
}
12
};
13
14
1
int
main
(
int
argc
,
char
**
argv
)
{
15
Foo
foo
;
16
1
foo
.
work
(
1
);
17
1
return
0
;
18
}
19