GCC Code Coverage Report


Directory: ./
File: function.hpp
Date: 2025-09-27 21:24:05+00:00
Coverage Exec Excl Total
Lines: 100.0% 10 0 10
Functions: 100.0% 4 0 4
Branches: 75.0% 6 0 8

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 1 time.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 1 time.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✓ Branch 7 taken 1 time.
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