Branch Coverage

blib/lib/Paranoid/IO/FileMultiplexer/Block/BATHeader.pm
Criterion Covered Total %
branch 19 40 47.5


line true false branch
93 2225 0 if (defined $self)
188 1248 0 if (pflock($file, 1))
189 1237 11 if ($self->bread(\$raw, 0, 40) == 40) { }
198 0 1237 unless ($type eq "PIOFMBAT")
204 0 1237 unless ($sname eq $self->{'streamName'})
211 0 1237 unless (defined $seq)
218 0 1237 unless ($seq == $self->{'sequence'})
225 0 1237 unless $rv
256 0 0 if (pflock($file, 2))
265 0 0 unless $self->bwrite(pack("NN", $self->splitInt($rec)), $pos) == 8
269 0 0 unless $rv
275 0 0 unless $rv
300 1237 0 if ($self->bread(\$raw, 40)) { }
311 1237 2659 unless defined $bn and $bn > $self->{'blockNum'}
314 0 2659 unless (not defined $prev or $bn > $prev)
356 125 22 if (defined $bn and $bn > $self->{'blockNum'}) { }
359 0 125 if (scalar grep({$_ eq $bn;} @{$$self{"data"};}))
366 0 125 if (scalar grep({$_ > $bn;} @{$$self{"data"};}))
372 125 0 if ($rv)
379 0 125 unless $self->bwrite(pack("NN", $self->splitInt($bn)), 40 + 8 * $#{$$self{"data"};}) == 8