GCC Code Coverage Report


Directory: .
File: main.cpp
Date: 2025-09-27 21:24:05+00:00
Coverage Exec Excl Total
Lines: 85.7% 6 0 7
Functions: 100.0% 2 0 2
Branches: 50.0% 1 0 2
Conditions: 50.0% 1 0 2

Line Branch Condition Exec Source
1 #include <iostream>
2
3
4 1 int foo(int param) {
5
1/2
✗ Branch 2 → 3 not taken.
✓ Branch 2 → 4 taken 1 time.
1/2
✗ True not covered.
1 if (param) {
6 return 1; //std::cout << "param not null." << std::endl;
7 } else {
8 1 return 0; //std::cout << "param is null." << std::endl;
9 }
10 }
11
12
13 1 int main(int argc, char* argv[]) {
14 1 foo(0);
15
16 1 return 0;
17 }
18