GCC Code Coverage Report


./
Coverage:
low: ≥ 0%
medium: ≥ 75.0%
high: ≥ 90.0%
Lines:
10 / 10
100.0%
Branches:
6 / 8
75.0%
Functions:
4 / 4
100.0%

function.hpp
Line Branch Exec Source
1
2 5 void FUNCTION_NAME(int a, int b) {
3
6/8
✓ Branch 0 taken 3 times.
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 5 not taken.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
5 if ((a>=0) && (b<=10)) {
4 3 std::cout << "Hello from if";
5 3 }
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