blib/lib/Sentry/Integration/DieHandler.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 14 CC 2 SCAR 13.9
CC
2
Cov
0%
setup_once
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 package Sentry::Integration::DieHandler;
2 use Mojo::Base -base, -signatures;
3  
4 use Mojo::Exception;
5  
6 sub setup_once ($self, $add_global_event_processor, $get_current_hub) {
7 ## no critic (Variables::RequireLocalizedPunctuationVars)
8 $SIG{__DIE__} = sub {
9 ref $_[0] ? CORE::die $_[0] : Mojo::Exception->throw(shift);
10 # ref $_[0] ? CORE::die $_[0] : Mojo::Exception->new(shift)->trace;
11 };
12 }
13  
14 1;