Branch Coverage

blib/lib/Signals/XSIG/Default.pm
Criterion Covered Total %
branch 17 60 28.3


line true false branch
26 72 3408 if /^#/
27 180 3228 unless /\S/
28 192 3036 if (/^\[(.+)\]/) { }
0 3036 elsif (m[\{(.+)/(\d+)\}]) { }
984 2052 elsif (not $ignore) { }
29 24 168 if ($1 eq 'default' or $1 eq $^O) { }
35 0 0 if ($1 eq $^O and $2 <= int $] * 1000) { }
44 984 0 if (defined $sig)
49 0 12 if ($ENV{'SIGNALS_XSIG_DUMP'})
60 0 4 if (defined &$funcname)
62 0 0 if &$funcname($signal, @args)
66 0 4 unless (defined $behavior)
67 0 0 if ($signal =~ /^NUM(\d+)/)
72 0 0 unless (defined $behavior)
78 4 0 if (ref $behavior eq "CODE")
79 4 0 if (defined &$behavior) { }
89 0 0 if ($behavior eq "IGNORE")
93 0 0 if ($behavior eq "SUSPEND")
99 0 0 if ($behavior =~ /^ABORT/)
107 0 0 if ($behavior =~ /^SIGSEGV/)
112 0 0 if ($behavior =~ /^EXIT (\d+)/)
117 0 0 if ($behavior =~ /^TERMINATE/)
120 0 0 if $signal eq $snam[$i]
138 0 0 unless ($sig_no)
144 0 0 if $^O eq "MSWin32"
145 0 0 unless eval { do { if ($sig_no) { POSIX::sigaction($sig_no, &POSIX::SIG_DFL); POSIX::sigprocmask(&POSIX::SIG_UNBLOCK, "POSIX::SigSet"->new($sig_no)); } } }
147 0 0 if ($sig_no)
155 0 0 if $^O eq "MSWin32"
165 0 0 if ($^O eq "MSWin32")
170 0 0 if ($$ > 0) { }