GCC Code Coverage Report


Directory: source/
File: code.cpp
Date: 0000-00-00 00:00:00
Exec Total Coverage
Lines: 9 10 90.0%
Functions: 2 2 100.0%
Branches: 3 4 75.0%

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 times.
3 if (param) {
5 2 return 1;
6 } else {
7 1 return 0;
8 }
9 3 }
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 2 }
19