Branch Coverage

blib/lib/MCE/Signal.pm
Criterion Covered Total %
branch 42 144 29.1


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 _) { }
124 0 0 if ($^O =~ /mswin|mingw|msys|cygwin/i) { }
126 0 0 unless -d $_tmp_base_dir
132 1 33 $_use_dev_shm && -d '/dev/shm' && -w _ ? :
137 0 34 unless exists $ENV{'MOBASTARTUPDIR'} or -w $_tmp_base_dir
152 0 9 if not defined $tmp_dir or $tmp_dir eq "" or not -d $tmp_dir
154 0 9 if ($_keep_tmp_dir == 1) { }
9 0 elsif ($_safe_clean) { }
158 0 9 if ($ENV{'TEMP'} and $^O =~ /mswin|mingw|msys|cygwin/i)
161 0 0 if -d $_dir
164 0 9 if (-d $tmp_dir)
188 0 0 if $_[0]
203 22 0 if defined $_[0] and $_[0] eq "MCE::Signal"
204 0 22 if $MCE::Signal::IPC
209 0 22 if (exists $_sig_name_lkup{$_sig_name}) { }
211 0 0 if $_sig_name eq "__DIE__"
212 0 0 if $_sig_name eq "PIPE"
216 22 0 if $_sig_name =~ /^\d+$/
221 22 0 if ($$ == $main_proc_id) { }
0 0 elsif ($_is_sig) { }
223 22 0 if (++${$_handler_count;} == 1)
225 0 22 if ($_is_sig == 1)
226 0 0 $_is_MSWin32 ? :
0 0 $_is_MSWin32 ? :
0 0 $_sig_name eq 'PIPE' ? :
230 0 0 if ($_sig_name eq 'PIPE') { }
238 9 13 if defined $tmp_dir
241 0 22 if ($_is_sig == 1)
242 0 0 if ($_sig_name eq "INT" and -t STDIN)
245 0 0 if ($INC{'threads.pm'} and $] lt '5.012000' || 'threads'->tid) { }
246 0 0 $_is_MSWin32 ? :
0 0 $_no_kill9 == 1 || $_sig_name eq 'PIPE' ? :
251 0 0 $_is_MSWin32 ? :
261 0 0 if ($_is_MSWin32) { }
262 0 0 if defined $tmp_dir
292 0 0 if defined $_[0] and $_[0] eq "MCE::Signal"
294 0 0 if @_ == 0
302 0 0 $_is_MSWin32 ? :
0 0 if $_sig_no == 2
305 0 0 $_is_MSWin32 ? :
0 0 if $_sig_no == 3
318 0 0 if defined $_[0] and $_[0] eq "MCE::Signal"
320 0 0 if (not defined $^S or $^S)
321 0 0 if ($INC{'threads.pm'} and 'threads'->tid != 0 or $ENV{'PERL_IPERL_RUNNING'}) { }
326 0 0 if ($_t =~ /^(?:[^\n]+\n){1,7}\teval / or $_t =~ /\n\teval [^\n]+\n\t(?:eval|Try)/)
343 0 0 if (defined $_[0])
345 0 0 if ($display_die_with_localtime) { }
358 0 0 if defined $_[0] and $_[0] eq "MCE::Signal"
363 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/
375 0 0 if (defined $_[0])
377 0 0 if ($display_warn_with_localtime) { }
401 0 97 defined $_[0] ? :
407 9 34 if length $_[1] < 9
408 0 43 if $ENV{'TEMP'} and $ENV{'TEMP'} eq $_[1]
409 0 43 if $_[1] =~ m[[\\/](?:etc|bin|lib|sbin)]
410 0 43 if $_[1] =~ m[[\\/](?:temp|tmp)[\\/]?$]i
416 595 210 unless (defined ${$_[0];})
418 0 595 if ($_caller ne "MCE" and $_caller ne "MCE::Signal")
419 0 0 if ($INC{'MCE.pm'} and 'MCE'->wid > 0) { }