GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 94.4% 17 / 0 / 18
Functions: 100.0% 4 / 0 / 4
Branches: 75.0% 6 / 0 / 8

function.hpp
Line Branch Exec Source
1
2 5 void FUNCTION_NAME(int a, int b) {
3
6/8
func_a(int, int):
✓ Branch 0 taken 3 times.
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 1 time.
func_b(int, int):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 3 not taken.
5 if ((a>=0) && (b<=10)) {
4 3 std::cout << "Hello from if";
5 }
6 else {
7 2 std::cout << "Hello from else";
8 }
9 5 std::cout << " (" << TO_STR(FUNCTION_NAME) << ")." << std::endl;
10 5 }
11
12 namespace ns {
13 2 void FUNCTION_NAME(int a) {
14 2 std::cout << "Hello from ns::" << TO_STR(FUNCTION_NAME) << "." << std::endl;
15 2 }
16 }
17