Condition Coverage

blib/lib/Plucene/Index/Writer.pm
Criterion Covered Total %
condition 15 20 75.0


and 3 conditions

line !l l&&!r l&&r condition
167 5 13 19 $min_segment >= 0 and $segs[$min_segment]->dir eq $$self{'tmp_directory'}
194 0 19 0 $segments == 1 and 'Plucene::Index::SegmentReader'->has_deletions($$self{'segmentinfos'}->info(0))

or 2 conditions

line l !l condition
113 2 1 $_[1] || $_[0]->mergefactor || 10

or 3 conditions

line l !l&&r !l&&!r condition
172 5 4 9 $min_segment < 0 or $doc_count + $segs[$min_segment]->doc_count > $self->mergefactor
9 9 0 $min_segment < 0 or $doc_count + $segs[$min_segment]->doc_count > $self->mergefactor or not $segs[-1]->dir eq $$self{'tmp_directory'}
194 15 0 19 ($segments = scalar $$self{'segmentinfos'}->segments) > 1 or $segments == 1 and 'Plucene::Index::SegmentReader'->has_deletions($$self{'segmentinfos'}->info(0))
275 17 257 0 $reader->directory eq $$self{'directory'} or $reader->directory eq $$self{'tmp_directory'}