Condition Coverage

blib/lib/MCE.pm
Criterion Covered Total %
condition 87 369 23.5


and 3 conditions

line !l l&&!r l&&r condition
27 85 0 0 $^O eq "MSWin32" and not $INC{'threads.pm'}
85 0 0 $INC{'threads.pm'} and not $INC{'threads/shared.pm'}
38 0 0 85 $] ge "5.008008" and not $INC{'PDL.pm'}
269 290 0 0 $_is_MSWin32 and $MCE::Signal::KILLED
273 0 290 0 $_[0] and $_[0]{'_spawned'}
290 0 0 $_[0] and $_[0]{'_spawned'} and $_[0]{'_init_pid'} eq "$$.$_tid"
290 0 0 $_[0] and $_[0]{'_spawned'} and $_[0]{'_init_pid'} eq "$$.$_tid" and not $MCE::Signal::KILLED
283 20 0 0 exists $MCE::MCE->{'_wuf'} and $MCE::MCE->{'_pid'} eq $_pid
414 0 0 0 not $_has_threads and $self{'use_threads'}
534 126 0 0 $_has_threads and $_is_winenv
536 126 0 0 $_tid and $MCE::_GMUTEX
549 126 0 0 $INC{'LWP/UserAgent.pm'} and not $INC{'Net/HTTP.pm'}
583 126 0 0 defined $TOP_HDLR && ($TOP_HDLR->{'_mgr_live'} || $TOP_HDLR->{'_wid'})
585 126 0 0 $_is_MSWin32 and defined $TOP_HDLR
126 0 0 $_is_MSWin32 and defined $TOP_HDLR and $TOP_HDLR->{'_spawned'}
596 0 0 0 $_is_MSWin32 and $ENV{'PERL_MCE_IPC'} ne "win32"
632 0 126 0 $^O ne "aix" and $^O ne "linux"
651 126 0 0 $self->{'loop_timeout'} and not $_is_MSWin32
660 0 35 0 defined $_use_threads and $_use_threads == 1
687 0 114 0 defined $_tsk_use_threads and $_tsk_use_threads == 1
703 0 56 0 defined $_tsk_use_threads and $_tsk_use_threads == 1
741 61 0 0 $_tid and $MCE::_GMUTEX
759 5 95 6 ref $_[0] eq "HASH" and ref $_[1] eq "HASH"
850 0 0 0 $_has_threads and $self->{'use_threads'}
904 0 0 0 defined $_use_threads and $_use_threads == 1
912 0 0 0 defined $self->{'spawn_delay'} and $self->{'spawn_delay'} > 0
962 20 0 187 defined $_params_ref and ref $_params_ref eq "HASH"
1004 34 108 0 $_has_user_tasks && $self->{'user_tasks'}[0]{'sequence'}
1012 4 14 0 $_has_user_tasks and $self->{'user_tasks'}[0]{'chunk_size'}
1172 428 0 0 defined $_submit_delay and $_submit_delay > 0
1210 0 45 97 not $_send_cnt and $_run_mode ne "nodata"
1233 0 0 0 $_tid and not $self->{'use_threads'}
1302 0 0 0 defined $_submit_delay and $_submit_delay > 0
1345 0 0 61 defined $TOP_HDLR and &refaddr($self) == &refaddr($TOP_HDLR)
1351 61 0 0 $_has_threads and $_is_winenv
61 0 0 $_has_threads and $_is_winenv and not $_no_lock
1389 61 0 0 defined $_sess_dir and -d $_sess_dir
1540 0 0 0 defined $self->{'init_relay'} and not $self->{'_relayed'}
0 0 0 defined $self->{'init_relay'} and not $self->{'_relayed'} and not $_task_id
0 0 0 defined $self->{'init_relay'} and not $self->{'_relayed'} and not $_task_id and exists $self->{'_wuf'}
0 0 0 defined $self->{'init_relay'} and not $self->{'_relayed'} and not $_task_id and exists $self->{'_wuf'} and $self->{'_pid'} eq $_pid
1554 0 0 0 $INC{'MCE/Hobo.pm'} and "MCE::Hobo"->can("_clear")
1562 0 0 0 $self->{'_retry'} and $self->{'_retry'}[2]--
1712 0 0 0 ref $_to and defined($_fd = fileno $_to) || defined($_fd = eval {
1729 0 0 0 defined $_to and $_to =~ /$_v2_regx/o
1735 0 0 0 not defined $_value and $_dest == 1 || $_dest == 4
1772 0 0 0 ref $_[0] and defined($_fd = fileno $_[0]) || defined($_fd = eval {
1799 0 0 0 ref $_[0] and defined($_fd = fileno $_[0]) || defined($_fd = eval {
1827 0 0 0 ref $_[0] and defined($_fd = fileno $_[0]) || defined($_fd = eval {
1858 65 0 0 exists $self->{'_guard'} && $self->{'_guard'}[0]
1873 0 0 0 $_[0] eq 'INT' || $_[0] eq 'TERM' and $^O ne "MSWin32"
1880 65 0 0 $self->{'posix_exit'} and not $_has_guard
65 0 0 $self->{'posix_exit'} and not $_has_guard and not $_is_MSWin32
1969 187 0 0 defined $_params_ref->{'init_relay'} and not defined $self->{'init_relay'}
2004 65 0 0 $_is_MSWin32 and defined $self->{'max_retries'} || $INC{'MCE/Child.pm'} || $INC{'MCE/Hobo.pm'}
2027 65 0 0 $INC{'MCE/Hobo.pm'} and "MCE::Hobo"->can("_clear")
2033 0 65 0 not $self->{'use_threads'} and $INC{'Math/Random.pm'}
2043 0 65 0 not $self->{'use_threads'} and $INC{'Math/Random/MT/Auto.pm'}
2086 0 0 0 defined $self->{'spawn_delay'} and $self->{'spawn_delay'} > 0
2113 212 0 0 $self->{'loop_timeout'} and not $_is_MSWin32
2119 212 0 0 defined $self->{'spawn_delay'} and $self->{'spawn_delay'} > 0

or 2 conditions

line l !l condition
382 103 216 $self{'task_name'} ||= "MCE"
383 0 103 $_def->{$_pkg}{'MAX_WORKERS'} || 1
384 0 319 $_def->{$_pkg}{'CHUNK_SIZE'} || 1
467 159 0 ref \%self || \%self
1316 0 61 shift() || 0
1815 0 0 shift() || '%s'

or 3 conditions

line l !l&&r !l&&!r condition
171 0 0 0 $_arg eq "export_const" or $_arg eq "const"
359 0 0 0 "MCE"->wid == 0 or not $^S
380 0 319 0 ref $class || $class
383 216 103 0 $self{'max_workers'} ||= $_def->{$_pkg}{'MAX_WORKERS'} || 1
384 0 319 0 $self{'chunk_size'} ||= $_def->{$_pkg}{'CHUNK_SIZE'} || 1
385 0 45 274 $_def->{$_pkg}{'TMP_DIR'} || $MCE::Signal::tmp_dir
0 45 274 $self{'tmp_dir'} ||= $_def->{$_pkg}{'TMP_DIR'} || $MCE::Signal::tmp_dir
386 0 319 0 $_def->{$_pkg}{'FREEZE'} || $_freeze
0 319 0 $self{'freeze'} ||= $_def->{$_pkg}{'FREEZE'} || $_freeze
387 0 319 0 $_def->{$_pkg}{'THAW'} || $_thaw
0 319 0 $self{'thaw'} ||= $_def->{$_pkg}{'THAW'} || $_thaw
433 0 0 234 $^S or $_tid
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'} or $INC{'stfl.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'} or $INC{'stfl.pm'} or $INC{'Curses.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'} or $INC{'stfl.pm'} or $INC{'Curses.pm'} or $INC{'CGI.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'} or $INC{'stfl.pm'} or $INC{'Curses.pm'} or $INC{'CGI.pm'} or $INC{'FCGI.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'} or $INC{'stfl.pm'} or $INC{'Curses.pm'} or $INC{'CGI.pm'} or $INC{'FCGI.pm'} or $INC{'Tk.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'} or $INC{'stfl.pm'} or $INC{'Curses.pm'} or $INC{'CGI.pm'} or $INC{'FCGI.pm'} or $INC{'Tk.pm'} or $INC{'Wx.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'} or $INC{'stfl.pm'} or $INC{'Curses.pm'} or $INC{'CGI.pm'} or $INC{'FCGI.pm'} or $INC{'Tk.pm'} or $INC{'Wx.pm'} or $INC{'Win32/GUI.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'} or $INC{'stfl.pm'} or $INC{'Curses.pm'} or $INC{'CGI.pm'} or $INC{'FCGI.pm'} or $INC{'Tk.pm'} or $INC{'Wx.pm'} or $INC{'Win32/GUI.pm'} or $INC{'Gearman/Util.pm'}
0 0 234 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'} or $INC{'stfl.pm'} or $INC{'Curses.pm'} or $INC{'CGI.pm'} or $INC{'FCGI.pm'} or $INC{'Tk.pm'} or $INC{'Wx.pm'} or $INC{'Win32/GUI.pm'} or $INC{'Gearman/Util.pm'} or $INC{'Gearman/XS.pm'}
509 0 0 234 $INC{'MCE/Child.pm'} or $INC{'MCE/Hobo.pm'}
531 0 0 126 $self->{'_spawned'} or exists $self->{'_module_instance'}
770 0 0 0 defined $_params_ref->{'input_data'} || defined $_params_ref->{'sequence'}
817 0 0 0 $_fcn eq "relay_lock" or $_fcn eq "relay_recv"
912 0 0 0 $_tid or $_is_MSWin32
953 116 0 91 defined $self->{'user_func'} or defined $_params_ref->{'user_func'}
1164 81 201 146 not $_has_user_tasks or exists $_task0_wids{$_wid}
1218 10 0 132 $_auto_shutdown or $self->{'_total_exited'}
0 0 132 $^S or $ENV{'PERL_IPERL_RUNNING'}
1225 0 0 0 $INC{'Mojo/IOLoop.pm'} or $INC{'Win32/GUI.pm'}
0 0 0 $INC{'Mojo/IOLoop.pm'} or $INC{'Win32/GUI.pm'} or $INC{'Gearman/XS.pm'}
0 0 0 $INC{'Mojo/IOLoop.pm'} or $INC{'Win32/GUI.pm'} or $INC{'Gearman/XS.pm'} or $INC{'Gearman/Util.pm'}
0 0 0 $INC{'Mojo/IOLoop.pm'} or $INC{'Win32/GUI.pm'} or $INC{'Gearman/XS.pm'} or $INC{'Gearman/Util.pm'} or $INC{'Tk.pm'}
0 0 0 $INC{'Mojo/IOLoop.pm'} or $INC{'Win32/GUI.pm'} or $INC{'Gearman/XS.pm'} or $INC{'Gearman/Util.pm'} or $INC{'Tk.pm'} or $INC{'Wx.pm'}
1233 0 0 0 $_t =~ /^(?:[^\n]+\n){1,7}\teval / or $_t =~ /\n\teval [^\n]+\n\t(?:eval|Try)/
0 0 0 $_t =~ /^(?:[^\n]+\n){1,7}\teval / or $_t =~ /\n\teval [^\n]+\n\t(?:eval|Try)/ or $_t =~ /\n\tMCE::_dispatch\(\) [^\n]+ thread \d+\n$/
0 0 0 $_t =~ /^(?:[^\n]+\n){1,7}\teval / or $_t =~ /\n\teval [^\n]+\n\t(?:eval|Try)/ or $_t =~ /\n\tMCE::_dispatch\(\) [^\n]+ thread \d+\n$/ or $_tid and not $self->{'use_threads'}
1261 0 0 0 defined $self->{'input_data'} or defined $self->{'sequence'}
1267 0 0 0 ref $_[0] eq "ARRAY" or ref $_[0] eq "HASH"
0 0 0 ref $_[0] eq "ARRAY" or ref $_[0] eq "HASH" or ref $_[0] eq "PDL"
1462 0 0 0 not $/ or $/ ne $MCE::LF
1545 0 0 0 not $_max_retries or ++$self->{'_retry_cnt'} == $_max_retries
1605 0 0 0 not $/ or $/ ne $MCE::LF
1634 0 0 0 not $/ or $/ ne $MCE::LF
1712 0 0 0 defined($_fd = fileno $_to) || defined($_fd = eval {
1735 0 0 0 $_dest == 1 || $_dest == 4
0 0 0 not defined $_dest or not defined $_value and $_dest == 1 || $_dest == 4
1753 0 0 0 not defined $_[1] or @_ > 2
1772 0 0 0 defined($_fd = fileno $_[0]) || defined($_fd = eval {
1799 0 0 0 defined($_fd = fileno $_[0]) || defined($_fd = eval {
1827 0 0 0 defined($_fd = fileno $_[0]) || defined($_fd = eval {
1873 0 0 0 $_[0] eq 'INT' || $_[0] eq 'TERM'
1916 0 0 0 not defined $_tmp_dir or $_tmp_dir eq ""
2004 0 0 0 defined $self->{'max_retries'} || $INC{'MCE/Child.pm'} || $INC{'MCE/Hobo.pm'}