Condition Coverage

blib/lib/App/Prove/Elasticsearch/Planner/Default.pm
Criterion Covered Total %
condition 22 33 66.6


and 2 conditions

line l !l condition
229 0 0 ref $docs eq 'ARRAY' and scalar @$docs
234 0 0 ref $doc->{'_source'}{'tests'} eq 'ARRAY' and scalar @{$doc->{'_source'}{'tests'};}

and 3 conditions

line !l l&&!r l&&r condition
167 1 0 7 ref $docs eq 'HASH' and ref $docs->{'hits'} eq 'HASH'
1 0 7 ref $docs eq 'HASH' and ref $docs->{'hits'} eq 'HASH' and ref $docs->{'hits'}{'hits'} eq 'ARRAY'
188 1 0 5 $name_correct and $version_correct
1 2 3 $name_correct and $version_correct and $plats_correct
278 0 1 1 defined $doc_exists and int $doc_exists

or 2 conditions

line l !l condition
277 0 2 $plan->{'name'} // ''

or 3 conditions

line l !l&&r !l&&!r condition
30 1 1 0 $e //= 'Search::Elasticsearch'->new('nodes', $serveraddress, 'request_timeout', 30)
178 4 1 1 !$options{'name'} || ($match->{'name'} // '') eq ($options{'name'} // '')
185 3 1 2 !scalar(@{$options{'platforms'};}) || $plats_size_ok && $plats_are_same
354 1 0 1 scalar keys %$adds or scalar keys %$subs