Condition Coverage

blib/lib/File/Bidirectional.pm
Criterion Covered Total %
condition 23 39 58.9


and 3 conditions

line !l l&&!r l&&r condition
194 0 0 206 $block_size =~ /^\d+$/ and $block_size > 0
212 206 0 0 _is_dos() && !$binmode
361 0 0 0 defined $direction and $direction != $$x{'move'}
552 6 18 27 $$x{'cur'} == $$x{'file_size'} && @{$$x{'buffer'};} == 0
557 6 18 27 $$x{'cur'} == 0 && @{$$x{'buffer'};} == 0

or 3 conditions

line l !l&&r !l&&!r condition
189 1 205 0 not defined $option or ref $option eq 'HASH'
193 0 206 0 $$option{'block_size'} || $BLOCK_SIZE
219 1 205 0 not defined $mode or $mode =~ /^(bi|forward|backward)$/
225 70 136 0 not defined $origin or $mode eq 'bi'
227 70 136 0 not defined $origin or $origin =~ /^(1|-1)$/
358 0 0 0 not defined $direction or $direction =~ /^(1|-1)$/
463 144041 200 1149 @{$$x{'buffer'};} > 1 or $$x{'cur'} == $$x{'file_size'}
503 144024 193 1149 @{$$x{'buffer'};} > 1 or $$x{'cur'} == 0