Branch Coverage

blib/lib/Signals/XSIG.pm
Criterion Covered Total %
branch 108 144 75.0


line true false branch
36 0 612 if $XDEBUG > 1
43 12 0 if (defined ${^GLOBAL_PHASE}) { }
44 0 169 if ${^GLOBAL_PHASE} eq "DESTRUCT"
54 0 12 if $_INITIALIZED
56 0 12 if ($Signals::XSIG::Config{'PERL_VERSION'} <= 6)
65 48 780 if (defined $z[$num[$i]])
83 12 840 if $sig eq "ZERO"
84 0 840 unless (eval { do { tied(@{$_XSIG{$sig};})->_refresh_SIG; 1 } })
121 0 25 if &__inGD()
136 31 155 unless defined $subhandler
137 6 149 if $subhandler eq ""
138 125 24 if ($start != 0)
141 15 134 if $subhandler eq "IGNORE"
142 5 129 if ($subhandler eq 'DEFAULT') { }
143 0 5 if ($start == 0)
144 0 0 if ($ignore_main_default)
147 0 0 if defined $_
0 0 if (0 != grep({$_ ne "" if defined $_;} @handlers))
151 1 4 if $seen_default++
155 6 123 unless defined &$subhandler
157 0 123 if ($signal =~ /__\w+__/) { }
177 6170 878 if (defined $sig)
181 840 38 unless $_INITIALIZED
184 10 28 unless ($DISABLE_WARNINGS)
185 0 10 if (defined $sig and $sig =~ /\d/ and not $sig =~ /\D/) { }
0 10 elsif (warnings::enabled('signal')) { }
200 0 2582 wantarray ? :
203 0 2582 wantarray ? :
214 35 500 if (not defined $handler or $handler eq "" or $handler eq "IGNORE" or $handler eq "DEFAULT")
221 18 482 if (substr($handler, 0, 1) eq '*') { }
244 146 2448 if $XDEBUG
252 7 1207 if $XDEBUG and $key ne "__DIE__"
254 1207 7 if (_resolve_signal($key)) { }
255 7 1200 if $XDEBUG and $key ne "__DIE__"
260 0 7 if $XDEBUG and $key ne "__DIE__"
268 4 941 if $XDEBUG and $key ne "__DIE__"
270 943 2 if (_resolve_signal($key)) { }
276 0 2 if $XDEBUG
288 0 4 if $XDEBUG and $key ne "__DIE__"
290 3 1 if (_resolve_signal($key)) { }
292 0 3 if $XDEBUG
298 0 1 if $XDEBUG
309 2 1 if ($XDEBUG)
325 2 1 if $XDEBUG
330 2 1 if ($XDEBUG)
339 0 470 if $XDEBUG and $key ne "__DIE__"
346 0 2 if $XDEBUG
348 0 2 if $XDEBUG
354 0 142 if $XDEBUG
359 144 2435 if $XDEBUG and not &__inGD()
386 2 2314 if $index < 0
408 146 1867 if $XDEBUG
417 804 2101 if $_REFRESH == 0
424 2288 742 unless defined $handlers[$i]
425 1 741 if $handlers[$i] eq "DEFAULT" and $seen_default++
426 3 738 if $handlers[$i] eq "IGNORE" and $seen_ignore++
431 1588 513 if (@index_list == 0) { }
454 59 elsif (@index_list == 1 and $seen_default == 0 || ref $DEFAULT_BEHAVIOR{$sig} eq '') { }
444 0 59 if ($sig eq '__WARN__') { }
0 59 elsif ($sig eq '__DIE__') { }
454 146 1955 if $XDEBUG
477 0 0 if $index < $self->{'start'}
484 0 4 if $index < 0
509 1 4 if (@{$self->{'handlers'};} + $self->{'start'} <= 1)
519 2 2 if ($self->{'start'} >= 0)
530 2 5 if (@{$self->{'handlers'};} + $self->{'start'} <= 0)
554 48 804 if (defined $alias{$key} and not defined $alias{"pk:$key"})
570 0 4444 if ($key ne $key2 and not $self->{'copied'}) { }
0 4444 elsif ($self->{'copied'}) { }
586 0 29 if (ref $value ne "ARRAY")
640 142 2 if (_resolve_signal($xsig, 1)) { }
641 8 134 if ($osig ne $xsig) { }