Line | Branch | Exec | Source |
---|---|---|---|
1 | #include <iostream> | ||
2 | |||
3 | 1 | void foo(int param) { | |
4 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
|
1 | if (param) { |
5 | ✗ | std::cout << "param is true" << std::endl; // GCOVR_EXCL_LINE | |
6 | } else { | ||
7 | 1 | std::cout << "param is false" << std::endl; | |
8 | } | ||
9 | // LCOV_EXCL_START | ||
10 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
|
1 | if (param) { |
11 | ✗ | std::cout << "param is true" << std::endl; | |
12 | } else { | ||
13 | 1 | std::cout << "param is false" << std::endl; | |
14 | } | ||
15 | // LCOV_EXCL_STOP | ||
16 | 1 | } | |
17 | |||
18 | |||
19 | 1 | int main(int argc, char* argv[]) { | |
20 | 1 | foo(argc-1); | |
21 | 1 | return 0; | |
22 | } | ||
23 |