GCC Code Coverage Report


Directory: source/
File: code.cpp
Date: 2025-09-27 21:24:05+00:00
Coverage Exec Excl Total
Lines: 87.5% 7 0 8
Functions: 100.0% 2 0 2
Branches: 75.0% 3 0 4

Line Branch Exec Source
1 #include "code.hpp"
2
3 3 int foo1(int param) {
4
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 1 time.
3 if (param) {
5 2 return 1;
6 } else {
7 1 return 0;
8 }
9 }
10
11
12 2 int foo2(int param) {
13
1/2
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
2 if (param) {
14 2 return 1;
15 } else {
16 return 0;
17 }
18 }
19