Line | Branch | Exec | Source |
---|---|---|---|
1 | #include <iostream> | ||
2 | |||
3 | |||
4 | 1 | int foo(int param) { | |
5 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
|
1 | if (param) { |
6 | // LCOV_EXCL_START | ||
7 | ✗ | std::cout << "param not null in block markers" << std::endl; | |
8 | // LCOV_EXCL_STOP | ||
9 | |||
10 | // CUSTOM_EXCL_START | ||
11 | − | std::cout << "param not null in block markers" << std::endl; | |
12 | // CUSTOM_EXCL_STOP | ||
13 | |||
14 | − | std::cout << "param not null" << std::endl; // CUSTOM_EXCL_LINE | |
15 | ✗ | return 1; // GCOVR_EXCL_LINE | |
16 | } else { | ||
17 | // LCOV_EXCL_START | ||
18 | 1 | std::cout << "param is null in block markers" << std::endl; | |
19 | // LCOV_EXCL_STOP | ||
20 | |||
21 | // CUSTOM_EXCL_START | ||
22 | − | std::cout << "param is null in block markers" << std::endl; | |
23 | // CUSTOM_EXCL_STOP | ||
24 | |||
25 | − | std::cout << "param is null" << std::endl; // CUSTOM_EXCL_LINE | |
26 | 1 | return 0; // GCOVR_EXCL_LINE | |
27 | } | ||
28 | } | ||
29 | |||
30 | |||
31 | 1 | int main(int argc, char* argv[]) { | |
32 | 1 | foo(0); | |
33 | |||
34 | 1 | return 0; | |
35 | } | ||
36 |