Branch Coverage

blib/lib/Paranoid/IO/FileMultiplexer/Block.pm
Criterion Covered Total %
branch 38 54 70.3


line true false branch
85 0 3669 unless defined $bnum and defined $bsize and defined $file and length $file
90 22 3669 unless defined $self
93 3669 22 if (defined $self)
97 3669 0 if defined $bsize
105 77 3570 unless $self->{'blockSize'} >= 4096 and $self->{'blockSize'} <= 1048576 and $self->{'blockSize'} % 4096 == 0
106 99 3570 unless defined $self
185 345 0 if (pflock($self->{'file'}, 2))
190 323 22 if (ptell($file) == $minPos) { }
233 0 8955 unless (defined $cref and ref $cref eq "SCALAR")
239 33 8922 unless defined $start
242 1389 7566 unless defined $bytes
245 0 8955 if ($minp + $start > $maxp)
250 8955 0 if ($rv)
253 11 8944 if $minp + $start + $bytes > $maxp + 1
257 8955 0 if (pseek($file, $minp + $start, 0)) { }
289 1925 0 defined $content ? :
301 0 1925 unless (defined $content and length $content)
307 220 1705 unless defined $start
310 1300 625 unless defined $offset
313 1300 625 unless defined $length
315 11 1914 if $blkLeft < $length
318 0 1925 if ($minp + $start > $maxp)
323 1925 0 if ($rv)
326 1925 0 if (pseek($file, $minp + $start, 0)) { }
362 1311 0 $self->has64bInt ? :
378 11644 0 if ($self->has64bInt) { }
381 0 0 if $upper == 0