File Coverage

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   23  
  4         6  
  4         21  
3             use Mojo::Exception;
4 4     4   848  
  4         11  
  4         539  
5             ## no critic (Variables::RequireLocalizedPunctuationVars)
6 3     3 0 12 $SIG{__DIE__} = sub {
  3         8  
  3         3  
  3         6  
  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;