Commit d174e99
committed
Make each arm of a ternary a line event
MRI parses the arms of a ternary as statements, so each is a line event
of its own: in x = y.size ?\n 1 : 2, the arm on the second line is counted
by line coverage and reported to line tracing. JRuby parsed them as plain
expressions, so that line read nil.1 parent 0f34fae commit d174e99
3 files changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3716 | 3716 | | |
3717 | 3717 | | |
3718 | 3718 | | |
3719 | | - | |
| 3719 | + | |
| 3720 | + | |
3720 | 3721 | | |
3721 | 3722 | | |
3722 | 3723 | | |
| |||
6883 | 6884 | | |
6884 | 6885 | | |
6885 | 6886 | | |
6886 | | - | |
| 6887 | + | |
6887 | 6888 | | |
6888 | 6889 | | |
6889 | | - | |
| 6890 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1945 | 1945 | | |
1946 | 1946 | | |
1947 | 1947 | | |
1948 | | - | |
| 1948 | + | |
| 1949 | + | |
1949 | 1950 | | |
1950 | 1951 | | |
1951 | 1952 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
422 | 435 | | |
423 | 436 | | |
424 | 437 | | |
| |||
0 commit comments