Condition Coverage

blib/lib/MCE/Stream.pm
Criterion Covered Total %
condition 52 100 52.0


and 3 conditions

line !l l&&!r l&&r condition
89 0 10 0 $_p->{'DEFAULT_MODE'} ne "grep" and $_p->{'DEFAULT_MODE'} ne "map"
139 102 0 0 exists $_params->{'task_end'} and ref $_params->{'task_end'} eq "CODE"
152 0 0 9 defined $_[0] and $_[0] eq "MCE::Stream"
167 0 0 24 defined $_[0] and $_[0] eq "MCE::Stream"
170 0 8 6 $_MCE->{$_pkg} and $_MCE->{$_pkg}{'_init_pid'} eq "$$.$_tid"
204 0 20 0 defined $_[0] and $_[0] eq "MCE::Stream"
225 0 10 10 defined $_file and ref $_file eq ""
10 0 10 defined $_file and ref $_file eq "" and $_file ne ""
253 0 10 0 defined $_[0] and $_[0] eq "MCE::Stream"
316 0 59 0 defined $_[0] and $_[0] eq "MCE::Stream"
321 54 5 0 ref $_[0] eq "HASH" and not exists $_[0]{'code'}
359 5 5 0 $_mode[-1] ne "grep" and $_mode[-1] ne "map"
407 49 0 10 @_ == 1 and $_r =~ /^(?:ARRAY|HASH|SCALAR|GLOB|FileHandle|IO::)/
415 0 59 0 exists $_p->{'max_workers'} and ref $_p->{'max_workers'} ne "ARRAY"
425 0 0 59 @_code > 1 and $_max_workers > 1
476 14 0 14 $_ eq "max_workers" and ref $_p->{'max_workers'} eq "ARRAY"
477 0 0 14 $_ eq "task_name" and ref $_p->{'task_name'} eq "ARRAY"
491 70 0 0 exists $_def->{$_pkg}{uc $_k} and not exists $_opts{$_k}
522 0 0 10 defined $_params->{$_pid} and exists $_params->{$_pid}{'sequence'}

or 2 conditions

line l !l condition
417 10 49 defined $_input_data or scalar @_
430 59 0 $_params->{$_pid} || {}

or 3 conditions

line l !l&&r !l&&!r condition
219 10 0 40 $_r eq "" or $_r eq "SCALAR"
10 10 30 $_r eq "" or $_r eq "SCALAR" or $_r =~ /^(?:GLOB|FileHandle|IO::)/
225 0 10 0 ref $_file eq "SCALAR" or ref($_file) =~ /^(?:GLOB|FileHandle|IO::)/
270 10 0 15 $_r eq "" or $_r =~ /^Math::/
10 0 15 $_r eq "" or $_r =~ /^Math::/ or $_r eq "HASH"
0 0 15 $_r eq "" or $_r =~ /^Math::/ or $_r eq "HASH" or $_r eq "ARRAY"
273 10 0 0 $_r eq "" or $_r =~ /^Math::/
345 108 10 59 ref $_[0] eq "CODE" or ref $_[0] eq "HASH"
351 10 0 0 exists $_[0]{'code'} or exists $_[0]{'mode'}
373 28 0 90 not defined $_prev_c->{$_pid}[$_pos] or $_prev_c->{$_pid}[$_pos] != $_code[$_pos]
377 28 0 90 not defined $_prev_m->{$_pid}[$_pos] or $_prev_m->{$_pid}[$_pos] ne $_mode[$_pos]
433 0 0 59 defined $_p->{'init_relay'} || defined $_def->{$_pkg}{'INIT_RELAY'}
450 14 0 45 $_init_mce or not exists $_queue->{$_pid}