Condition Coverage

blib/lib/MCE/Core/Validation.pm
Criterion Covered Total %
condition 45 103 43.6


and 3 conditions

line !l l&&!r l&&r condition
40 315 88 18 defined $_s->{'input_data'} and ref $_s->{'input_data'} eq ""
47 1684 0 0 $_s->{$_k} and !&looks_like_number($_s->{$_k}) || $_s->{$_k} < 0
51 1684 842 0 $_s->{$_k} and ref $_s->{$_k} ne "CODE"
101 827 0 0 $_s->{'RS'} and ref $_s->{'RS'} ne ""
103 827 0 0 $_s->{'max_retries'} and not $_s->{'max_retries'} =~ /\A\d+\z/
107 3416 719 0 $_s->{$_k} and ref $_s->{$_k} ne "CODE"
113 73 0 195 $_ref ne "MCE::Queue" and $_ref ne "Thread::Queue"
73 52 143 $_ref ne "MCE::Queue" and $_ref ne "Thread::Queue" and $_ref ne "ARRAY"
52 0 143 $_ref ne "MCE::Queue" and $_ref ne "Thread::Queue" and $_ref ne "ARRAY" and $_ref ne "HASH"
52 143 0 $_ref ne "MCE::Queue" and $_ref ne "Thread::Queue" and $_ref ne "ARRAY" and $_ref ne "HASH" and $_ref ne "CODE"
139 18 36 0 defined $_seq->{$_p} and not &looks_like_number($_seq->{$_p})
162 18 0 0 $_seq->{'step'} < 0 and $_seq->{'begin'} < $_seq->{'end'}
0 18 0 $_seq->{'step'} > 0 and $_seq->{'begin'} > $_seq->{'end'}
189 0 0 0 defined $_i->{$_p} and !&looks_like_number($_i->{$_p}) || int $_i->{$_p} != $_i->{$_p} || $_i->{$_p} < 1
235 0 0 182 defined $_chunk_size and defined $_max_workers
237 0 182 0 defined $_params and exists $_params->{'chunk_size'}
250 0 182 0 defined $_params and ref $_params->{'input_data'} eq "CODE"
158 24 0 defined $_input_data and ref $_input_data eq "CODE"
279 0 164 18 defined $_params and exists $_params->{'sequence'}
0 164 0 defined $_params and exists $_params->{'_file'}
354 78 0 48 defined $1 and defined $2

or 2 conditions

line l !l condition
285 0 0 $_params->{'sequence'}{'step'} || 1
290 0 18 $_params->{'sequence'}[2] || 1

or 3 conditions

line l !l&&r !l&&!r condition
47 0 0 0 !&looks_like_number($_s->{$_k}) || $_s->{$_k} < 0
73 406 421 0 $_[1] || $self
95 0 0 421 not $_s->{'chunk_size'} =~ /\A[0-9e\+]+\z/ or $_s->{'chunk_size'} == 0
162 0 0 18 $_seq->{'step'} < 0 and $_seq->{'begin'} < $_seq->{'end'} or $_seq->{'step'} > 0 and $_seq->{'begin'} > $_seq->{'end'}
0 0 18 $_seq->{'step'} < 0 and $_seq->{'begin'} < $_seq->{'end'} or $_seq->{'step'} > 0 and $_seq->{'begin'} > $_seq->{'end'} or $_seq->{'step'} == 0
182 0 0 0 not &looks_like_number($_i->{'delay'}) or $_i->{'delay'} < 0
189 0 0 0 !&looks_like_number($_i->{$_p}) || int $_i->{$_p} != $_i->{$_p} || $_i->{$_p} < 1
250 0 0 182 defined $_params and ref $_params->{'input_data'} eq "CODE" or defined $_input_data and ref $_input_data eq "CODE"
293 0 0 18 defined $_input_data or $_array_size
356 12 0 36 not $_max_workers or $_max_workers < 1
382 0 0 72 not &looks_like_number($_n) or int $_n != $_n
0 0 72 not &looks_like_number($_n) or int $_n != $_n or $_n < 1