Condition Coverage

blib/lib/MCE/Step.pm
Criterion Covered Total %
condition 45 97 46.3


and 3 conditions

line !l l&&!r l&&r condition
112 22 0 0 exists $_params->{'task_end'} and ref $_params->{'task_end'} eq "CODE"
157 0 0 0 defined $_name and exists $_lkup->{$_pid}{$_name}
190 0 0 0 defined $_name and exists $_lkup->{$_pid}{$_name}
225 0 0 0 defined $_name and exists $_lkup->{$_pid}{$_name}
253 0 0 13 defined $_[0] and $_[0] eq "MCE::Step"
265 0 0 25 defined $_[0] and $_[0] eq "MCE::Step"
268 0 9 4 $_MCE->{$_pkg} and $_MCE->{$_pkg}{'_init_pid'} eq "$$.$_tid"
304 0 4 0 defined $_[0] and $_[0] eq "MCE::Step"
325 0 2 2 defined $_file and ref $_file eq ""
2 0 2 defined $_file and ref $_file eq "" and $_file ne ""
353 0 2 0 defined $_[0] and $_[0] eq "MCE::Step"
416 0 21 0 defined $_[0] and $_[0] eq "MCE::Step"
483 17 0 4 @_ == 1 and $_r =~ /^(?:ARRAY|HASH|SCALAR|GLOB|FileHandle|IO::)/
489 0 14 7 exists $_p->{'max_workers'} and ref $_p->{'max_workers'} ne "ARRAY"
496 7 0 14 @_code > 1 and $_max_workers > 1
543 12 7 6 $_ eq "max_workers" and ref $_p->{'max_workers'} eq "ARRAY"
544 13 0 6 $_ eq "task_name" and ref $_p->{'task_name'} eq "ARRAY"
545 13 0 0 $_ eq "use_threads" and ref $_p->{'use_threads'} eq "ARRAY"
561 65 0 0 exists $_def->{$_pkg}{uc $_k} and not exists $_opts{$_k}
594 0 5 2 defined $_params->{$_pid} and exists $_params->{$_pid}{'sequence'}

or 2 conditions

line l !l condition
229 0 0 shift() || 0
491 4 17 defined $_input_data or scalar @_

or 3 conditions

line l !l&&r !l&&!r condition
193 0 0 0 not &looks_like_number($_p) or int $_p != $_p
231 0 0 0 not &looks_like_number($_t) or int $_t != $_t
319 2 0 6 $_r eq "" or $_r eq "SCALAR"
2 2 4 $_r eq "" or $_r eq "SCALAR" or $_r =~ /^(?:GLOB|FileHandle|IO::)/
325 0 2 0 ref $_file eq "SCALAR" or ref($_file) =~ /^(?:GLOB|FileHandle|IO::)/
370 2 0 2 $_r eq "" or $_r =~ /^Math::/
2 0 2 $_r eq "" or $_r =~ /^Math::/ or $_r eq "HASH"
0 0 2 $_r eq "" or $_r =~ /^Math::/ or $_r eq "HASH" or $_r eq "ARRAY"
373 2 0 0 $_r eq "" or $_r =~ /^Math::/
452 19 0 16 not defined $_prev_c->{$_pid}[$_pos] or $_prev_c->{$_pid}[$_pos] != $_code[$_pos]
517 13 0 8 $_init_mce or not exists $_queue->{$_pid}