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   26  
  4         9  
  4         24  
3             use Mojo::Exception;
4 4     4   827  
  4         8  
  4         539  
5             ## no critic (Variables::RequireLocalizedPunctuationVars)
6 3     3 0 7 $SIG{__DIE__} = sub {
  3         38  
  3         7  
  3         6  
  3         15  
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         32  
12             1;