GCC Code Coverage Report
Directory:
./
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Coverage
Exec / Excl / Total
Lines:
75.0%
3 / 0 / 4
Functions:
100.0%
1 / 0 / 1
Branches:
50.0%
1 / 0 / 2
Conditions:
50.0%
1 / 0 / 2
List of functions
Function (File:Line)
Calls
Lines
Branches
Conditions
Blocks
print(int) (lib/lib.cpp:3)
called 1 time
75.0%
50.0%
50.0%
75.0%
lib/lib.cpp
2 covered
1 uncovered
1 partial covered
0 excluded
Line
Branch
Condition
Exec
Source
1
#include
<iostream>
2
3
1
int
print
(
int
test
)
4
{
5
1/2
✓ Branch 2 → 3 taken 1 time.
✗ Branch 2 → 4 not taken.
1/2
✗ False not covered.
1
if
(
!
test
)
6
1
return
1
;
7
else
8
✗
return
2
;
9
}
10