Branch Coverage

blib/lib/Git/PurePerl/PackIndex/Version2.pm
Criterion Covered Total %
branch 13 26 50.0


line true false branch
29 0 2 unless $fh->seek($pos + $self->global_offset, 0)
31 0 18 unless $fh->read(my $sha1, $SHA1Size)
35 0 2 unless $fh->seek($pos + $self->global_offset, 0)
37 0 18 unless $fh->read(my $crc, $CrcSize)
41 0 2 unless $fh->seek($pos + $self->global_offset, 0)
43 0 18 unless $fh->read(my $offset, $OffsetSize)
61 0 23 unless defined $slot
68 0 23 unless $fh->seek($self->global_offset + $OffsetStart + $mid * $SHA1Size, 0)
71 0 23 unless $fh->read(my $data, $SHA1Size)
73 0 23 if ($midsha1 lt $want_sha1) { }
0 23 elsif ($midsha1 gt $want_sha1) { }
83 0 23 unless $fh->seek($pos, 0)
84 0 23 unless $fh->read(my $data, $OffsetSize)