GCC Code Coverage Report


Directory: ./
File: func.h
Date: 2025-09-27 21:24:05+00:00
Coverage Exec Excl Total
Lines: 83.3% 5 0 6
Functions: 100.0% 2 0 2
Branches: 50.0% 1 0 2

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