Condition Coverage

blib/lib/MCE.pm
Criterion Covered Total %
condition 89 375 23.7


and 3 conditions

line !l l&&!r l&&r condition
27 94 0 0 $^O eq "MSWin32" and not $INC{'threads.pm'}
94 0 0 $INC{'threads.pm'} and not $INC{'threads/shared.pm'}
38 0 0 94 $] ge "5.008008" and not $INC{'PDL.pm'}
269 330 0 0 $_is_MSWin32 and $MCE::Signal::KILLED
273 0 330 0 $_[0] and $_[0]{'_spawned'}
330 0 0 $_[0] and $_[0]{'_spawned'} and $_[0]{'_init_pid'} eq "${$}.$_tid"
330 0 0 $_[0] and $_[0]{'_spawned'} and $_[0]{'_init_pid'} eq "${$}.$_tid" and not $MCE::Signal::KILLED
283 18 0 0 exists $MCE::MCE->{'_wuf'} and $MCE::MCE->{'_pid'} eq $_pid
414 0 0 0 not $_has_threads and $self{'use_threads'}
537 140 0 0 $_has_threads and $_is_winenv
539 140 0 0 $_tid and $MCE::_GMUTEX
552 140 0 0 $INC{'LWP/UserAgent.pm'} and not $INC{'Net/HTTP.pm'}
586 140 0 0 defined $TOP_HDLR && ($TOP_HDLR->{'_mgr_live'} || $TOP_HDLR->{'_wid'})
588 140 0 0 $_is_MSWin32 and defined $TOP_HDLR
140 0 0 $_is_MSWin32 and defined $TOP_HDLR and $TOP_HDLR->{'_spawned'}
599 0 0 0 $_is_MSWin32 and $ENV{'PERL_MCE_IPC'} ne "win32"
655 140 0 0 $self->{'loop_timeout'} and not $_is_MSWin32
664 0 44 0 defined $_use_threads and $_use_threads == 1
691 0 119 0 defined $_tsk_use_threads and $_tsk_use_threads == 1
707 0 57 0 defined $_tsk_use_threads and $_tsk_use_threads == 1
743 0 67 0 $MCE::MCE->{'_wid'} == 0 and builtin::refaddr($MCE) != builtin::refaddr($self)
745 67 0 0 $_tid and $MCE::_GMUTEX
763 5 95 6 ref $_[0] eq "HASH" and ref $_[1] eq "HASH"
854 0 0 0 $_has_threads and $self->{'use_threads'}
908 0 0 0 defined $_use_threads and $_use_threads == 1
916 0 0 0 defined $self->{'spawn_delay'} and $self->{'spawn_delay'} > 0
966 29 0 192 defined $_params_ref and ref $_params_ref eq "HASH"
1000 0 148 0 $MCE::MCE->{'_wid'} == 0 and builtin::refaddr($MCE) != builtin::refaddr($self)
1008 39 109 0 $_has_user_tasks && $self->{'user_tasks'}[0]{'sequence'}
1016 4 14 0 $_has_user_tasks and $self->{'user_tasks'}[0]{'chunk_size'}
1176 452 0 0 defined $_submit_delay and $_submit_delay > 0
1214 0 46 102 not $_send_cnt and $_run_mode ne "nodata"
1237 0 0 0 $_tid and not $self->{'use_threads'}
1306 0 0 0 defined $_submit_delay and $_submit_delay > 0
1349 0 0 67 defined $TOP_HDLR and builtin::refaddr($self) == builtin::refaddr($TOP_HDLR)
1355 67 0 0 $_has_threads and $_is_winenv
67 0 0 $_has_threads and $_is_winenv and not $_no_lock
1393 67 0 0 defined $_sess_dir and -d $_sess_dir
1544 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
1558 0 0 0 $INC{'MCE/Hobo.pm'} and "MCE::Hobo"->can("_clear")
1566 0 0 0 $self->{'_retry'} and $self->{'_retry'}[2]--
1715 0 0 0 ref $_to and defined($_fd = fileno $_to) || defined($_fd = eval {
1732 0 0 0 defined $_to and $_to =~ /$_v2_regx/o
1738 0 0 0 not defined $_value and $_dest == 1 || $_dest == 4
1775 0 0 0 ref $_[0] and defined($_fd = fileno $_[0]) || defined($_fd = eval {
1802 0 0 0 ref $_[0] and defined($_fd = fileno $_[0]) || defined($_fd = eval {
1830 0 0 0 ref $_[0] and defined($_fd = fileno $_[0]) || defined($_fd = eval {
1861 73 0 0 exists $self->{'_guard'} && $self->{'_guard'}[0]
1876 0 0 0 $_[0] eq 'INT' || $_[0] eq 'TERM' and $^O ne "MSWin32"
1883 73 0 0 $self->{'posix_exit'} and not $_has_guard
73 0 0 $self->{'posix_exit'} and not $_has_guard and not $_is_MSWin32
1972 192 0 0 defined $_params_ref->{'init_relay'} and not defined $self->{'init_relay'}
2007 73 0 0 $_is_MSWin32 and defined $self->{'max_retries'} || $INC{'MCE/Child.pm'} || $INC{'MCE/Hobo.pm'}
2040 73 0 0 $INC{'PDL.pm'} and "PDL"->can("srand")
2041 73 0 0 $INC{'PDL.pm'} and "PDL"->can("srandom")
2045 0 73 0 not $self->{'use_threads'} and $INC{'Math/Random.pm'}
2098 0 0 0 defined $self->{'spawn_delay'} and $self->{'spawn_delay'} > 0
2125 248 0 0 $self->{'loop_timeout'} and not $_is_MSWin32
2131 248 0 0 defined $self->{'spawn_delay'} and $self->{'spawn_delay'} > 0

or 2 conditions

line l !l condition
382 108 234 $self{'task_name'} ||= "MCE"
383 0 112 $_def->{$_pkg}{'MAX_WORKERS'} || 1
384 0 342 $_def->{$_pkg}{'CHUNK_SIZE'} || 1
467 164 0 ref \%self || \%self
1320 0 67 shift() || 0
1818 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 342 0 ref $class || $class
383 230 112 0 $self{'max_workers'} ||= $_def->{$_pkg}{'MAX_WORKERS'} || 1
384 0 342 0 $self{'chunk_size'} ||= $_def->{$_pkg}{'CHUNK_SIZE'} || 1
385 0 45 297 $_def->{$_pkg}{'TMP_DIR'} || $MCE::Signal::tmp_dir
0 45 297 $self{'tmp_dir'} ||= $_def->{$_pkg}{'TMP_DIR'} || $MCE::Signal::tmp_dir
386 0 342 0 $_def->{$_pkg}{'FREEZE'} || $_freeze
0 342 0 $self{'freeze'} ||= $_def->{$_pkg}{'FREEZE'} || $_freeze
387 0 342 0 $_def->{$_pkg}{'THAW'} || $_thaw
0 342 0 $self{'thaw'} ||= $_def->{$_pkg}{'THAW'} || $_thaw
433 0 0 248 $^S or $_tid
0 0 248 $^S or $_tid or $INC{'Mojo/IOLoop.pm'}
0 0 248 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'}
0 0 248 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'}
0 0 248 $^S or $_tid or $INC{'Mojo/IOLoop.pm'} or $INC{'Coro.pm'} or $INC{'LWP/UserAgent.pm'} or $INC{'stfl.pm'}
0 0 248 $^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 248 $^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 248 $^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 248 $^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 248 $^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 248 $^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 248 $^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 248 $^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 248 $INC{'MCE/Child.pm'} or $INC{'MCE/Hobo.pm'}
534 0 0 140 $self->{'_spawned'} or exists $self->{'_module_instance'}
774 0 0 0 defined $_params_ref->{'input_data'} || defined $_params_ref->{'sequence'}
821 0 0 0 $_fcn eq "relay_lock" or $_fcn eq "relay_recv"
916 0 0 0 $_tid or $_is_MSWin32
957 125 0 96 defined $self->{'user_func'} or defined $_params_ref->{'user_func'}
1168 101 205 146 not $_has_user_tasks or exists $_task0_wids{$_wid}
1222 15 0 133 $_auto_shutdown or $self->{'_total_exited'}
0 0 133 $^S or $ENV{'PERL_IPERL_RUNNING'}
1229 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'}
1237 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'}
1265 0 0 0 defined $self->{'input_data'} or defined $self->{'sequence'}
1271 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"
1466 0 0 0 not $/ or $/ ne $MCE::LF
1549 0 0 0 not $_max_retries or ++$self->{'_retry_cnt'} == $_max_retries
1608 0 0 0 not $/ or $/ ne $MCE::LF
1637 0 0 0 not $/ or $/ ne $MCE::LF
1715 0 0 0 defined($_fd = fileno $_to) || defined($_fd = eval {
1738 0 0 0 $_dest == 1 || $_dest == 4
0 0 0 not defined $_dest or not defined $_value and $_dest == 1 || $_dest == 4
1756 0 0 0 not defined $_[1] or @_ > 2
1775 0 0 0 defined($_fd = fileno $_[0]) || defined($_fd = eval {
1802 0 0 0 defined($_fd = fileno $_[0]) || defined($_fd = eval {
1830 0 0 0 defined($_fd = fileno $_[0]) || defined($_fd = eval {
1876 0 0 0 $_[0] eq 'INT' || $_[0] eq 'TERM'
1919 0 0 0 not defined $_tmp_dir or $_tmp_dir eq ""
2007 0 0 0 defined $self->{'max_retries'} || $INC{'MCE/Child.pm'} || $INC{'MCE/Hobo.pm'}
2034 73 0 0 not $self->{'use_threads'} or $] ge "5.020000"