GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 80.0% 4 / 0 / 5
Functions: 100.0% 1 / 0 / 1
Branches: 50.0% 1 / 0 / 2
Conditions: 50.0% 1 / 0 / 2

testApp/tmp.cpp
Line Branch Condition Exec Source
1 #include "lib.h"
2
3 1 int main(int argc, char** argv)
4 {
5
1/2
✗ Branch 2 → 3 not taken.
✓ Branch 2 → 4 taken 1 time.
1/2
✗ True not covered.
1 if ( argc > 1 )
6 print(1);
7 else
8 1 print(0);
9
10 1 return 0;
11 }
12