A/file3.cpp
44.4% Lines (4 / 9)
0.0% Branches (0 / 2)
50.0% Functions (1 / 2)
Functions (2)
Function
Calls
Lines
Branches
Blocks
four_bar()
:1
1x
100.0%
–
100.0%
four_bar_()
:8
0
0.0%
0.0%
0.0%
| Line | Branch | TLA | Hits | Source Code |
|---|---|---|---|---|
| 1 | 1x | int four_bar() | ||
| 2 | { | |||
| 3 | 1x | int x=1; | ||
| 4 | 1x | int y=2; | ||
| 5 | 1x | return x+y; | ||
| 6 | } | |||
| 7 | ||||
| 8 | ✗ | int four_bar_() | ||
| 9 | { | |||
| 10 | ✗ | int x=1; | ||
| 11 |
0/2✗ Branch 0 not taken.
✗ Branch 1 not taken.
|
✗ | if (x) | |
| 12 | ✗ | return 2*x; /* This is a really long comment that confirms whether gcovr colors lines that exceed normal expectations. */ | ||
| 13 | else | |||
| 14 | ✗ | return x; | ||
| 15 | } | |||
| 16 |