| blib/lib/Error/Show.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 36 | 84 | 42.8 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 139 | 0 | 0 | 0 | not $pid and $@ |
| 285 | 28 | 0 | 0 | $counter >= $limit and $limit > 0 |
| 416 | 0 | 10 | 0 | defined $_[0] and $_[0] eq __PACKAGE__ |
| 462 | 0 | 5 | 3 | $do_internal_frames and @$frames == 0 |
| 559 | 0 | 0 | 0 | not $pid and $@ |
| line | l | !l | condition |
|---|---|---|---|
| 41 | 4 | 0 | $Exporter::ExportLevel // 0 |
| 237 | 0 | 9 | $entry{$1} //= [] |
| 283 | 0 | 27 | $opts{'limit'} // 100 |
| 293 | 4 | 0 | $prog // "" |
| 371 | 28 | 0 | $opts{'current_indent'} // "" |
| 429 | 0 | 8 | $opts{'pre_lines'} //= 5 |
| 430 | 0 | 8 | $opts{'post_lines'} //= 5 |
| 431 | 0 | 8 | $opts{'start_offset'} //= 0 |
| 432 | 0 | 8 | $opts{'end_offset'} //= 0 |
| 433 | 0 | 8 | $opts{'translation'} //= 0 |
| 434 | 0 | 8 | $opts{'indent'} //= " " |
| 435 | 0 | 8 | $opts{'file'} //= "" |
| 459 | 5 | 3 | $frames ||= [] |
| 495 | 0 | 19 | builtin::blessed($e) // "" |
| 519 | 0 | 19 | $a->[11] //= "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 125 | 0 | 0 | 0 | $file eq "-e" or $file eq "-E" |
| 0 | 0 | 0 | $file eq "-e" or $file eq "-E" or $file eq "-" | |
| 180 | 0 | 0 | 0 | $^S or not defined $^S |
| 219 | 0 | 8 | 0 | $error ||= "$error_in" |
| 230 | 9 | 0 | 0 | /at (.*?) line (\d+)/u or /Missing right curly or square bracket at (.*?) (\d+) at end of line/u |
| 454 | 0 | 5 | 3 | $frames ||= eval { do { $error->{'frames'} } } |
| 455 | 5 | 0 | 3 | $frames ||= eval { do { [$error->trace->frames] } } |
| 456 | 5 | 0 | 3 | $frames ||= eval { do { $error->caller_stack } } |
| 457 | 5 | 0 | 3 | $frames ||= eval { do { [$error->getStackTrace] } } |
| 458 | 5 | 0 | 3 | $frames ||= eval { do { \$error->frames } } |
| 590 | 0 | 2 | 0 | $_[1] // caller |
| 616 | 1 | 0 | 1 | not defined $sub or $error |
| 674 | 2 | 0 | 0 | $error //= $@ |