| Directory: | ./ |
|---|---|
| File: | main.cpp |
| Date: | 2020-09-29 20:30:54 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 6 | 7 | 85.7% |
| Branches: | 1 | 2 | 50.0% |
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include <iostream> | ||
| 2 | |||
| 3 | int bar(); | ||
| 4 | |||
| 5 | 1 | int foo(int param) { | |
| 6 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 times.
|
1 | if (param) { |
| 7 | ✗ | return 1; //std::cout << "param not null." << std::endl; | |
| 8 | } else { | ||
| 9 | 1 | return 0; //std::cout << "param is null." << std::endl; | |
| 10 | } | ||
| 11 | } | ||
| 12 | |||
| 13 | |||
| 14 | 1 | int main(int argc, char* argv[]) { | |
| 15 | 1 | foo(bar()); | |
| 16 | |||
| 17 | 1 | return 0; | |
| 18 | } | ||
| 19 |