Condition Coverage

blib/lib/App/Prove/Elasticsearch/Indexer.pm
Criterion Covered Total %
condition 10 23 43.4


and 3 conditions

line !l l&&!r l&&r condition
185 0 1 1 defined $doc_exists && int $doc_exists
255 0 6 0 scalar @{$opts{'versions'};} and not $hit->{'_source'}{'version'}
259 0 5 0 scalar @{$opts{'platforms'};} and not $hit->{'_source'}{'platform'}

or 2 conditions

line l !l condition
270 2 1 $hit->{'defect'} //= []

or 3 conditions

line l !l&&r !l&&!r condition
32 1 1 0 $e //= 'Search::Elasticsearch'->new('nodes', $serveraddress)
173 1 0 1 $idx //= App::Prove::Elasticsearch::Utils::get_last_index($e, $index)
196 0 0 0 $bulk_helper //= $e->bulk_helper('index', $index, 'type', $index)
201 0 0 0 $idx //= App::Prove::Elasticsearch::Utils::get_last_index($e, $index)