| blib/lib/Sentry/Integration/DieHandler.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 12 | 13 | 92.3 |
| branch | 0 | 2 | 0.0 |
| condition | n/a | ||
| subroutine | 3 | 4 | 75.0 |
| pod | 0 | 1 | 0.0 |
| total | 15 | 20 | 75.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | use Mojo::Base 'Sentry::Integration::Base', -signatures; | ||||||
| 2 | 4 | 4 | 24 | ||||
| 4 | 7 | ||||||
| 4 | 21 | ||||||
| 3 | use Mojo::Exception; | ||||||
| 4 | 4 | 4 | 761 | ||||
| 4 | 7 | ||||||
| 4 | 513 | ||||||
| 5 | ## no critic (Variables::RequireLocalizedPunctuationVars) | ||||||
| 6 | 3 | 3 | 0 | 12 | $SIG{__DIE__} = sub { | ||
| 3 | 5 | ||||||
| 3 | 6 | ||||||
| 3 | 5 | ||||||
| 3 | 5 | ||||||
| 7 | ref $_[0] ? CORE::die $_[0] : Mojo::Exception->throw(shift); | ||||||
| 8 | # ref $_[0] ? CORE::die $_[0] : Mojo::Exception->new(shift)->trace; | ||||||
| 9 | 0 | 0 | 0 | }; | |||
| 10 | } | ||||||
| 11 | 3 | 28 | |||||
| 12 | 1; |