GCC Code Coverage Report


Directory: ./
File: file1.cpp
Date: 0000-00-00 00:00:00
Exec Total Coverage
Lines: 3 4 75.0%
Functions: 1 1 100.0%
Branches: 1 2 50.0%
Conditions: 1 2 50.0%

Line Branch Condition Exec Source
1 1 int foo(int param)
2 {
3
1/2
✗ Branch 0 (2→3) not taken.
✓ Branch 1 (2→4) taken 1 times.
1/2
✗ True not covered.
1 if (param) {
4 return 1;
5 } else {
6 1 return 0;
7 }
8 }
9