B/main.cpp
100.0% Lines (8 / 8)
25.0% Branches (1 / 4)
25.0% Conditions (1 / 4)
100.0% Functions (1 / 1)
Functions (1)
Function
Calls
Lines
Branches
Blocks
main
:13
1x
100.0%
25.0%
66.7%
| Line | Branch | Condition | TLA | Hits | Source Code |
|---|---|---|---|---|---|
| 1 | #include <iostream> | ||||
| 2 | #include <string.h> | ||||
| 3 | |||||
| 4 | extern int foo(int param); | ||||
| 5 | extern int foobar(int param); | ||||
| 6 | extern int bar(); | ||||
| 7 | extern int four_bar(); | ||||
| 8 | extern int foo5(int param); | ||||
| 9 | extern int foo6(int param); | ||||
| 10 | extern int uncovered(); | ||||
| 11 | |||||
| 12 | |||||
| 13 | 1x | int main(int argc, char* argv[]) { | |||
| 14 | 1x | foo(0); | |||
| 15 | 1x | foobar(1); | |||
| 16 | 1x | bar(); | |||
| 17 | 1x | four_bar(); | |||
| 18 | 1x | foo5(0); | |||
| 19 |
1/4✗ Branch 7 → 8 not taken.
✓ Branch 7 → 12 taken 1 time.
✗ Branch 11 → 9 not taken.
✗ Branch 11 → 12 not taken.
|
1/4✗ Condition 0: True not covered.
✗ Condition 1: Not covered.
|
1x | if (argc > 1) { for (int i = 0; i < strlen(argv[1]); ++i) { foo6(0); } } | |
| 20 | |||||
| 21 | 1x | return 0; | |||
| 22 | } | ||||
| 23 |