| Directory: | . | 
|---|---|
| File: | main.cpp | 
| Date: | 2020-09-29 20:05:15 | 
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 7 | 8 | 87.5% | 
| Branches: | 3 | 6 | 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 | 2/4✓ Branch 0 taken 1 times. ✗ Branch 1 not taken. ✓ Branch 2 taken 1 times. ✗ Branch 3 not taken. | 3 | } | 
| 19 |