GCC Code Coverage Report


./
File: main.cpp
Date: 2025-09-27 21:24:05+00:00
Lines:
7 of 8, 0 excluded
87.5%
Functions:
2 of 2, 0 excluded
100.0%
Branches:
1 of 2, 0 excluded
50.0%

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