Condition Coverage

blib/lib/MCE.pm
Criterion Covered Total %
condition 86 366 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"
652 126 0 0 $self->{'loop_timeout'} and not $_is_MSWin32
661 0 35 0 defined $_use_threads and $_use_threads == 1
688 0 114 0 defined $_tsk_use_threads and $_tsk_use_threads == 1
704 0 56 0 defined $_tsk_use_threads and $_tsk_use_threads == 1
742 61 0 0 $_tid and $MCE::_GMUTEX
760 5 95 6 ref $_[0] eq "HASH" and ref $_[1] eq "HASH"
851 0 0 0 $_has_threads and $self->{'use_threads'}
905 0 0 0 defined $_use_threads and $_use_threads == 1
913 0 0 0 defined $self->{'spawn_delay'} and $self->{'spawn_delay'} > 0
963 20 0 187 defined $_params_ref and ref $_params_ref eq "HASH"
1005 34 108 0 $_has_user_tasks && $self->{'user_tasks'}[0]{'sequence'}
1013 4 14 0 $_has_user_tasks and $self->{'user_tasks'}[0]{'chunk_size'}
1173 428 0 0 defined $_submit_delay and $_submit_delay > 0
1211 0 45 97 not $_send_cnt and $_run_mode ne "nodata"
1234 0 0 0 $_tid and not $self->{'use_threads'}
1303 0 0 0 defined $_submit_delay and $_submit_delay > 0
1346 0 0 61 defined $TOP_HDLR and &refaddr($self) == &refaddr($TOP_HDLR)
1352 61 0 0 $_has_threads and $_is_winenv
61 0 0 $_has_threads and $_is_winenv and not $_no_lock
1390 61 0 0 defined $_sess_dir and -d $_sess_dir
1541 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
1555 0 0 0 $INC{'MCE/Hobo.pm'} and "MCE::Hobo"->can("_clear")
1563 0 0 0 $self->{'_retry'} and $self->{'_retry'}[2]--
1713 0 0 0 ref $_to and defined($_fd = fileno $_to) || defined($_fd = eval { do { $_to->fileno } })
1730 0 0 0 defined $_to and $_to =~ /$_v2_regx/o
1736 0 0 0 not defined $_value and $_dest == 1 || $_dest == 4
1773 0 0 0 ref $_[0] and defined($_fd = fileno $_[0]) || defined($_fd = eval { do { $_[0]->fileno } })
1800 0 0 0 ref $_[0] and defined($_fd = fileno $_[0]) || defined($_fd = eval { do { $_[0]->fileno } })
1828 0 0 0 ref $_[0] and defined($_fd = fileno $_[0]) || defined($_fd = eval { do { $_[0]->fileno } })
1859 65 0 0 exists $self->{'_guard'} && $self->{'_guard'}[0]
1874 0 0 0 $_[0] eq 'INT' || $_[0] eq 'TERM' and $^O ne "MSWin32"
1881 65 0 0 $self->{'posix_exit'} and not $_has_guard
65 0 0 $self->{'posix_exit'} and not $_has_guard and not $_is_MSWin32
1970 187 0 0 defined $_params_ref->{'init_relay'} and not defined $self->{'init_relay'}
2005 65 0 0 $_is_MSWin32 and defined $self->{'max_retries'} || $INC{'MCE/Child.pm'} || $INC{'MCE/Hobo.pm'}
2028 65 0 0 $INC{'MCE/Hobo.pm'} and "MCE::Hobo"->can("_clear")
2034 0 65 0 not $self->{'use_threads'} and $INC{'Math/Random.pm'}
2044 0 65 0 not $self->{'use_threads'} and $INC{'Math/Random/MT/Auto.pm'}
2087 0 0 0 defined $self->{'spawn_delay'} and $self->{'spawn_delay'} > 0
2114 212 0 0 $self->{'loop_timeout'} and not $_is_MSWin32
2120 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
1317 0 61 shift() || 0
1816 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'}
771 0 0 0 defined $_params_ref->{'input_data'} || defined $_params_ref->{'sequence'}
818 0 0 0 $_fcn eq "relay_lock" or $_fcn eq "relay_recv"
913 0 0 0 $_tid or $_is_MSWin32
954 116 0 91 defined $self->{'user_func'} or defined $_params_ref->{'user_func'}
1165 81 201 146 not $_has_user_tasks or exists $_task0_wids{$_wid}
1219 10 0 132 $_auto_shutdown or $self->{'_total_exited'}
0 0 132 $^S or $ENV{'PERL_IPERL_RUNNING'}
1226 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'}
1234 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'}
1262 0 0 0 defined $self->{'input_data'} or defined $self->{'sequence'}
1268 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"
1463 0 0 0 not $/ or $/ ne $MCE::LF
1546 0 0 0 not $_max_retries or ++$self->{'_retry_cnt'} == $_max_retries
1606 0 0 0 not $/ or $/ ne $MCE::LF
1635 0 0 0 not $/ or $/ ne $MCE::LF
1713 0 0 0 defined($_fd = fileno $_to) || defined($_fd = eval { do { $_to->fileno } })
1736 0 0 0 $_dest == 1 || $_dest == 4
0 0 0 not defined $_dest or not defined $_value and $_dest == 1 || $_dest == 4
1754 0 0 0 not defined $_[1] or @_ > 2
1773 0 0 0 defined($_fd = fileno $_[0]) || defined($_fd = eval { do { $_[0]->fileno } })
1800 0 0 0 defined($_fd = fileno $_[0]) || defined($_fd = eval { do { $_[0]->fileno } })
1828 0 0 0 defined($_fd = fileno $_[0]) || defined($_fd = eval { do { $_[0]->fileno } })
1874 0 0 0 $_[0] eq 'INT' || $_[0] eq 'TERM'
1917 0 0 0 not defined $_tmp_dir or $_tmp_dir eq ""
2005 0 0 0 defined $self->{'max_retries'} || $INC{'MCE/Child.pm'} || $INC{'MCE/Hobo.pm'}