Condition Coverage

blib/lib/Text/Buffer.pm
Criterion Covered Total %
condition 34 76 44.7


and 3 conditions

line !l l&&!r l&&r condition
82 1 2 0 $$self{'file'} and $file eq $$self{'file'}
3 0 0 $$self{'file'} and $file eq $$self{'file'} and not $self->isModified
275 4 0 21 defined $line and $count++ <= $MAXCOUNT
278 2 0 0 defined $$self{'_findlast'} and $$self{'_currline'} eq $$self{'_findlast'}
287 19 0 0 $self->isEOF and $$self{'_findwrap'}
363 0 0 5 $$self{'_buffer'} and ref $$self{'_buffer'} eq 'ARRAY'
0 0 5 $$self{'_buffer'} and ref $$self{'_buffer'} eq 'ARRAY' and $#{$$self{'_buffer'};} >= 0
377 0 1 2 $pos < length $str and ($index = index($str, $match, $pos)) >= $pos
1 0 2 $pos < length $str and ($index = index($str, $match, $pos)) >= $pos and $count++ < $MAXCOUNT
488 39 98 0 $$self{'_autonewline'} and $text

or 2 conditions

line l !l condition
129 151 0 shift() || (return undef)
228 0 118 shift() || 1
239 1 0 shift() || 1
253 4 0 shift() || (return undef)
435 2 0 shift() || (return '')
449 12 0 shift() || (return '')
450 4 8 shift() || ''
489 98 0 $$self{'_newline'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
15 0 4 0 ref $proto || $proto
51 0 3 0 shift() || $$self{'file'}
76 3 0 0 shift() || $$self{'file'}
149 1 19 130 $curr < 0 or $curr >= $self->getLineCount
203 0 0 1 not $newline or $newline eq 'off'
0 0 1 not $newline or $newline eq 'off' or $newline eq 'none'
0 1 0 $newline eq "\n" or lc $newline eq 'unix'
0 0 0 $newline eq "\r" or lc $newline eq 'mac'
0 0 0 $newline eq "\r\n" or lc $newline eq 'windows'
328 0 23 0 not defined ${$$self{'_buffer'};}[$linenum] or ${$$self{'_buffer'};}[$linenum] ne $line