GCC Code Coverage Report


Directory: ../
File: project/src/main.cpp
Date: 2025-09-27 21:24:05+00:00
Coverage Exec Excl Total
Lines: 75.0% 3 0 4
Functions: 100.0% 1 0 1
Branches: 50.0% 1 0 2
Conditions: 50.0% 1 0 2

Line Branch Condition Exec Source
1 bool no(bool);
2 int yes(int);
3
4 1 int main(int argc, char *argv[])
5 {
6
1/2
✗ Branch 3 → 4 not taken.
✓ Branch 3 → 6 taken 1 time.
1/2
✗ True not covered.
1 if (no(true)) {
7 return yes(7);
8 }
9 else {
10 1 return yes(10);
11 }
12 }
13