Branch Coverage

blib/lib/Cogit/Pack.pm
Criterion Covered Total %
branch 30 52 57.6


line true false branch
55 0 50 unless $fh->seek($offset, 0)
56 0 50 unless $fh->read(my $c, 1)
67 0 42 unless $fh->read($c, 1)
74 4 46 if ($type eq 'ofs_delta' or $type eq 'ref_delta') { }
46 0 elsif ($type eq 'commit' or $type eq 'tree' or $type eq 'blob' or $type eq 'tag') { }
95 0 50 unless $fh->seek($offset, 0)
103 0 50 unless $fh->read(my $block, 4096)
106 0 50 unless length $out == $size
108 0 50 unless $fh->seek($offset + $deflate->total_in, 0)
118 0 4 unless $fh->seek($offset, 0)
119 0 4 unless $fh->read(my $data, $SHA1Size)
122 2 2 if ($type eq 'ofs_delta') { }
153 0 4 if ($src_size != length $base)
164 4 8 if (($c & 128) != 0) { }
8 0 elsif ($c != 0) { }
168 4 0 if ($c & 1) != 0
170 0 4 if ($c & 2) != 0
172 0 4 if ($c & 4) != 0
174 0 4 if ($c & 8) != 0
176 4 0 if ($c & 16) != 0
178 0 4 if ($c & 32) != 0
180 0 4 if ($c & 64) != 0
182 0 4 if $cp_size == 0
193 0 4 if (length $dest != $dest_size)
207 0 16 unless (defined $c)
215 8 8 if ($c & 128) == 0