Condition Coverage

blib/lib/Tie/File/Indexed.pm
Criterion Covered Total %
condition 48 101 47.5


and 3 conditions

line !l l&&!r l&&r condition
103 2 2 13 $fwrite and not $fappend
185 6 27 21 fcwrite($flags) and not fctrunc($flags)
446 0 13 13 fcread($mode) and not fctrunc($mode)
447 13 0 0 not -e "$file.hdr" and fccreat($mode)
473 0 2 23 $tied->opened and fcwrite($tied->{'mode'})
488 0 0 7 $tied->opened && $tied->close && $tied->open($file, $mode & 18446744073709551103)
498 37 0 68 ref $tied && defined $tied->{'idxfh'} && defined $tied->{'datfh'}
547 0 1 0 $tied->opened and fcwrite($flags)
0 1 0 $tied->opened and fcwrite($flags) and $tied->close
562 0 2 0 $src->opened and $src->flush
582 0 1 0 $tied->opened and fcwrite($flags)
0 1 0 $tied->opened and fcwrite($flags) and $tied->close

or 2 conditions

line l !l condition
94 474 0 $mode //= 'r'
277 0 0 $tied->slurpIndex // ''
303 24 0 $_[1] // ''
350 0 4 $tied->{'bsize'} // 2097152
663 0 0 $op // 2
670 0 0 $_[1] // 0
844 2 0 truncate $tied->{'idxfh'}, ($size + $shift) * $tied->{'len_ix'} or return undef

or 3 conditions

line l !l&&r !l&&!r condition
53 1 16 0 ref $that || $that
98 2 0 15 $mode =~ /[a]/ || $mode =~ />>/
120 80 0 0 ($flags & 0) == 0 || ($flags & 2) == 2
128 0 121 14 ($flags & 1) == 1 || ($flags & 2) == 2
170 54 0 0 $perms //= 438 & ~(umask)
251 0 0 0 ref $that || $that
324 0 133 0 not defined $_[1] or seek $_[0]{'idxfh'}, $_[1] * $_[0]{'len_ix'}, 0
335 1 74 0 not defined $_[1] or seek $_[0]{'idxfh'}, $_[1] * $_[0]{'len_ix'}, 0
396 47 69 175 ref $_[0]{$_} || $_ =~ /^(?:file|mode|perms)$/
412 0 13 0 $hfile //= $tied->{'file'} . '.hdr'
426 0 23 0 $hfile //= $tied->{'file'} . '.hdr'
440 9 17 0 $file //= $tied->{'file'}
441 9 17 0 $mode //= $tied->{'mode'}
447 0 13 0 not -e "$file.hdr" and fccreat($mode) or $tied->loadHeader
530 0 10 1 $file //= $tied->{'file'}
564 2 0 0 $dst->opened or $dst->open($opts{'file'}, 'rw')
603 0 1 0 $tmpfile //= "$tied->{'file'}.tmp"