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             package Sentry::Integration::DieHandler;
2 4     4   28 use Mojo::Base 'Sentry::Integration::Base', -signatures;
  4         8  
  4         31  
3              
4 4     4   1338 use Mojo::Exception;
  4         10  
  4         761  
5              
6 3     3 0 9 sub setup_once ($self, $add_global_event_processor, $get_current_hub) {
  3         6  
  3         6  
  3         6  
  3         6  
7             ## no critic (Variables::RequireLocalizedPunctuationVars)
8             $SIG{__DIE__} = sub {
9 0 0   0     ref $_[0] ? CORE::die $_[0] : Mojo::Exception->throw(shift);
10             # ref $_[0] ? CORE::die $_[0] : Mojo::Exception->new(shift)->trace;
11 3         28 };
12             }
13              
14             1;