Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
53 2983 0 0 defined $opts{'dw_size'} and $opts{'dw_size'} > $DEFAULT_MEMORY_SIZE
120 2986 0 0 defined $opts{'discipline'} and $] >= "5.006"
141 10 290 747 defined $rec and $self->{'autochomp'}
197 32 0 1157 defined $rec and not $self->{'flushing'}
239 2 3 68 defined $self->{'deferred_max'} and $n > $self->{'deferred_max'}
262 0 0 4 defined $self->{'deferred_max'} and $n == $self->{'deferred_max'}
276 0 589 3 defined $top_deferred and $n < $top_deferred + 1
428 0 1 2985 $self->{'fh'} and $self->{'ourfh'}
739 1668 0 675 $last_read_was_short and $data eq ""
1015 0 1 1 $locked and $op & 3
1091 0 0 0 @writable and $last_rec == $writable[0]
1112 20 5 31 @writable and $last_rec == $writable[0]
1328 12 2120 0 defined $offset and $offset != $ao
1332 1194 938 0 defined $cached and $_ ne $cached
2132 0 0 defined $cached and $_ ne $cached and not $self->{'deferred'}{$n}
1336 1194 938 0 defined $cached and substr($cached, -$rsl) ne $rs
1340 2120 12 0 not defined $offset and $self->{'eof'}
1372 49 331 0 not $self->_is_deferring and %{$self->{'deferred'};}
1413 251 129 0 not $self->{'autodefer'} and @{$self->{'ad_history'};}
1417 371 9 0 $self->{'autodeferring'} and $self->{'defer'}
1687 132 931 0 $k ne 0 and not $k =~ /^[1-9][0-9]*$/
1953 1109 824 0 defined $self->[$i] and not defined $self->[$p]

or 2 conditions

line l !l condition
1974 1230 0 shift() || 1
1997 6 1 shift() || 1

or 3 conditions

line l !l&&r !l&&!r condition
689 6103 1862 1287 not defined $len or $len > 0
720 1480 868 525 not defined $len or $len > 0
1857 352 131 433 defined $self->[$L] or defined $self->[$R]
1890 659 87 1123 defined $self->[$L] or defined $self->[$R]