GCC Code Coverage Report
.
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
6 / 7
85.7%
Branches:
1 / 2
50.0%
Functions:
2 / 2
100.0%
List of functions
Function (File:Line)
Calls
Lines
Branches
Blocks
foo(int) (example.cpp:3)
called 1 time
75.0%
50.0%
75.0%
main (example.cpp:15)
called 1 time
100.0%
-%
100.0%
example.cpp
5 covered
1 uncovered
1 partial covered
Line
Branch
Exec
Source
1
// example.cpp
2
3
1
int
foo
(
int
param
)
4
{
5
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1
if
(
param
)
6
{
7
✗
return
1
;
8
}
9
else
10
{
11
1
return
0
;
12
}
13
}
14
15
1
int
main
(
int
argc
,
char
*
argv
[])
16
{
17
1
foo
(
0
);
18
19
1
return
0
;
20
}
21
22