Branch Coverage

blib/lib/DiaColloDB/Compat/v0_08/MultiMapFile.pm
Criterion Covered Total %
branch 0 44 0.0


line true false branch
76 0 0 defined $mmf->{'base'} ? :
80 0 0 if $_[0]->opened
96 0 0 if $mmf->opened
99 0 0 if (fcread($flags) and not fctrunc($flags))
100 0 0 unless $mmf->loadHeader
105 0 0 unless $mmf->{'afh'} = fcopen("$base.ma", $flags, $mmf->{'perms'})
107 0 0 unless $mmf->{'bfh'} = fcopen("$base.mb", $flags, $mmf->{'perms'})
140 0 0 unless $mmf->opened and fcwrite($mmf->{'flags'})
141 0 0 unless $mmf->dirty
144 0 0 unless $mmf->saveHeader
160 0 0 unless $afh->print(pack($pack_o, $off))
162 0 0 unless $bfh->print(pack($pack_l, $bsz / $len_i), $_)
185 0 0 unless $mmf->opened
193 0 0 unless read($bfh, $buf, $len_l) == $len_l
197 0 0 unless read($bfh, $buf, $bsz) == $bsz
201 0 0 if $mmf->dirty
274 0 0 unless defined $a
277 0 0 unless seek $mmf->{'afh'}, $a * $mmf->{'len_o'}, 0
280 0 0 unless read($mmf->{'afh'}, $buf, $mmf->{'len_o'}) == $mmf->{'len_o'}
283 0 0 unless seek $mmf->{'bfh'}, $boff, 0
286 0 0 unless read($mmf->{'bfh'}, $buf, $mmf->{'len_l'}) == $mmf->{'len_l'}
289 0 0 unless read($mmf->{'bfh'}, $buf, $bsz) == $bsz