| 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 | 1 | void bar(int param) { // GCOVR_EXCL_FUNCTION | |
| 19 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
|
1 | if (param) { |
| 20 | ✗ | std::cout << "param is true" << std::endl; | |
| 21 | } else { | ||
| 22 | 1 | std::cout << "param is false" << std::endl; | |
| 23 | } | ||
| 24 | 1 | } | |
| 25 | |||
| 26 | 1 | int main(int argc, char* argv[]) { | |
| 27 | 1 | foo(argc-1); | |
| 28 | 1 | bar(argc-1); | |
| 29 | 1 | return 0; | |
| 30 | } | ||
| 31 |