Condition Coverage

lib/Tie/File.pm
Criterion Covered Total %
condition 56 82 68.2


and 3 conditions

line !l l&&!r l&&r condition
45 2981 0 0 defined $opts{'dw_size'} and $opts{'dw_size'} > $DEFAULT_MEMORY_SIZE
112 2984 0 0 defined $opts{'discipline'} and $] >= 5.006
133 10 290 695 defined $rec and $self->{'autochomp'}
189 32 0 1107 defined $rec and not $self->{'flushing'}
231 2 3 68 defined $self->{'deferred_max'} and $n > $self->{'deferred_max'}
254 0 0 4 defined $self->{'deferred_max'} and $n == $self->{'deferred_max'}
268 0 527 3 defined $top_deferred and $n < $top_deferred + 1
420 0 1 2983 $self->{'fh'} and $self->{'ourfh'}
731 1668 0 672 $last_read_was_short and $data eq ''
1019 0 1 1 $locked and $op & 3
1095 0 0 0 @writable and $last_rec == $writable[0]
1116 20 5 31 @writable and $last_rec == $writable[0]
1332 12 2120 0 defined $offset and $offset != $ao
1336 1194 938 0 defined $cached and $_ ne $cached
2132 0 0 defined $cached and $_ ne $cached and not $self->{'deferred'}{$n}
1340 1194 938 0 defined $cached and substr($cached, -$rsl) ne $rs
1344 2120 12 0 not defined $offset and $self->{'eof'}
1376 49 331 0 not $self->_is_deferring and %{$self->{'deferred'};}
1417 251 129 0 not $self->{'autodefer'} and @{$self->{'ad_history'};}
1421 371 9 0 $self->{'autodeferring'} and $self->{'defer'}
1691 132 931 0 $k ne '0' and not $k =~ /^[1-9][0-9]*$/
1957 1109 824 0 defined $self->[$i] and not defined $self->[$p]

or 2 conditions

line l !l condition
1978 1230 0 shift() || 1
2001 6 1 shift() || 1

or 3 conditions

line l !l&&r !l&&!r condition
681 6100 1862 1287 not defined $len or $len > 0
712 1477 868 525 not defined $len or $len > 0
1861 351 131 430 defined $self->[$L] or defined $self->[$R]
1894 641 89 1031 defined $self->[$L] or defined $self->[$R]