GCC Code Coverage Report


Directory: ./
File: func.h
Date: 0000-00-00 00:00:00
Exec Total Coverage
Lines: 5 6 83.3%
Functions: 1 1 100.0%
Branches: 1 2 50.0%

Line Branch Exec Source
1
2 #ifdef FOO_OTHER_LINE
3 1 int foo(int param) {
4 #else
5 1 int foo(int param) {
6 #endif
7
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 if (param) {
8 return 1;
9 } else {
10 2 return 0;
11 }
12 2 }
13