GCC Code Coverage Report


Directory: A/
File: file4.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 foobar(int param)
2 {
3
1/2
✓ Branch 0 (2→3) taken 1 times.
✗ Branch 1 (2→4) not taken.
1/2
✗ False not covered.
1 if (param) {
4 1 return 1;
5 } else {
6 return 0;
7 }
8 }
9