Branch Coverage

blib/lib/MCE/Signal.pm
Criterion Covered Total %
branch 43 146 29.4


line true false branch
29 0 97 if $prog_name eq "-e" or $prog_name eq "-"
44 22 0 if $$ == $main_proc_id and not $MCE::Signal::KILLED and not $MCE::Signal::STOPPED
66 0 4 if $_imported++
71 0 7 if $_arg eq "-setpgrp"
72 0 7 if $_arg eq "-keep_tmp_dir"
73 1 6 if $_arg eq "-use_dev_shm"
74 0 6 if $_arg eq "-no_kill9"
77 0 6 if $_arg eq "-no_setpgrp"
78 0 6 if $_arg eq "-no_sigmsg"
80 0 6 if $_arg =~ /^-/
89 0 4 if $_setpgrp == 1 and not $_is_MSWin32
92 3 1 if $_use_dev_shm or grep /tmp_dir/, @_export_args
121 0 0 if defined $tmp_dir and -d $tmp_dir and -w _
123 0 34 if ($ENV{'TEMP'} and -d $ENV{'TEMP'} and -w _) { }
0 34 elsif (not -w '/tmp' and -e $ENV{'TMPDIR'} and -d $ENV{'TMPDIR'} and -w _) { }
124 0 0 if ($^O =~ /mswin|mingw|msys|cygwin/i) { }
126 0 0 unless -d $_tmp_base_dir
135 1 33 $_use_dev_shm && -d '/dev/shm' && -w _ ? :
140 0 34 unless exists $ENV{'MOBASTARTUPDIR'} or -w $_tmp_base_dir
155 0 9 if not defined $tmp_dir or $tmp_dir eq "" or not -d $tmp_dir
157 0 9 if ($_keep_tmp_dir == 1) { }
9 0 elsif ($_safe_clean) { }
161 0 9 if ($ENV{'TEMP'} and $^O =~ /mswin|mingw|msys|cygwin/i)
164 0 0 if -d $_dir
167 0 9 if (-d $tmp_dir)
191 0 0 if $_[0]
206 22 0 if defined $_[0] and $_[0] eq "MCE::Signal"
207 0 22 if $MCE::Signal::IPC
212 0 22 if (exists $_sig_name_lkup{$_sig_name}) { }
214 0 0 if $_sig_name eq "__DIE__"
215 0 0 if $_sig_name eq "PIPE"
219 22 0 if $_sig_name =~ /^\d+$/
224 22 0 if ($$ == $main_proc_id) { }
0 0 elsif ($_is_sig) { }
226 22 0 if (++${$_handler_count;} == 1)
228 0 22 if ($_is_sig == 1)
229 0 0 $_is_MSWin32 ? :
0 0 $_is_MSWin32 ? :
0 0 $_sig_name eq 'PIPE' ? :
233 0 0 if ($_sig_name eq 'PIPE') { }
241 9 13 if defined $tmp_dir
244 0 22 if ($_is_sig == 1)
245 0 0 if ($_sig_name eq "INT" and -t STDIN)
248 0 0 if ($INC{'threads.pm'} and $] lt '5.012000' || 'threads'->tid) { }
249 0 0 $_is_MSWin32 ? :
0 0 $_no_kill9 == 1 || $_sig_name eq 'PIPE' ? :
254 0 0 $_is_MSWin32 ? :
264 0 0 if ($_is_MSWin32) { }
265 0 0 if defined $tmp_dir
295 0 0 if defined $_[0] and $_[0] eq "MCE::Signal"
297 0 0 if @_ == 0
305 0 0 $_is_MSWin32 ? :
0 0 if $_sig_no == 2
308 0 0 $_is_MSWin32 ? :
0 0 if $_sig_no == 3
321 0 0 if defined $_[0] and $_[0] eq "MCE::Signal"
323 0 0 if (not defined $^S or $^S)
324 0 0 if ($INC{'threads.pm'} and 'threads'->tid != 0 or $ENV{'PERL_IPERL_RUNNING'}) { }
329 0 0 if ($_t =~ /^(?:[^\n]+\n){1,7}\teval / or $_t =~ /\n\teval [^\n]+\n\t(?:eval|Try)/)
346 0 0 if (defined $_[0])
348 0 0 if ($display_die_with_localtime) { }
361 0 0 if defined $_[0] and $_[0] eq "MCE::Signal"
366 0 0 if $_[0] =~ /^Finished with active (?:child|hobo) processes/ or $_[0] =~ /^A thread exited while \d+ threads were running/ or $_[0] =~ /^Attempt to free unreferenced scalar/ or $_[0] =~ /^Perl exited with active threads/ or $_[0] =~ /^Thread \d+ terminated abnormally/
378 0 0 if (defined $_[0])
380 0 0 if ($display_warn_with_localtime) { }
404 0 97 defined $_[0] ? :
410 9 34 if length $_[1] < 9
411 0 43 if $ENV{'TEMP'} and $ENV{'TEMP'} eq $_[1]
412 0 43 if $_[1] =~ m[[\\/](?:etc|bin|lib|sbin)]
413 0 43 if $_[1] =~ m[[\\/](?:temp|tmp)[\\/]?$]i
419 595 210 unless (defined ${$_[0];})
421 0 595 if ($_caller ne "MCE" and $_caller ne "MCE::Signal")
422 0 0 if ($INC{'MCE.pm'} and 'MCE'->wid > 0) { }