Branch Coverage

blib/lib/Compress/Zlib/Perl.pm
Criterion Covered Total %
branch 78 98 79.5


line true false branch
44 0 0 unless @crc32
64 1 7410 unless @crc32
77 0 8 unless $args{-'WindowBits'} and $args{-'WindowBits'} < 0
87 8 0 wantarray ? :
102 8 7395 if (&{$_[0]{'state'};}) { }
107 0 7395 if length $_[1]
109 7395 0 if $return < 0
114 7403 0 wantarray ? :
133 756 2844 unless (length $byte)
153 8537 47372 if (--$bits_have < 0)
156 1789 6748 unless (length $byte)
167 0 10920 unless defined $$code{$str}
181 40 76 unless ++$bits and $_
188 0 12 unless %code
207 29 3 if $_ >= 0
215 30 2 if $_ >= 0
222 0 8 unless (defined $bit)
231 0 8 unless (defined $type)
236 4 4 if ($type)
237 1 3 unless @lit_base
238 0 4 if ($type == 1) { }
4 0 elsif ($type == 2) { }
260 4 4 if (length $_[0]{'type0length'} < 4)
266 0 4 unless $len == (~$nlen & 65535)
276 4846 4 if ($_[0]{'type0left'} -= length $got)
281 4 0 if ($_[0]{'final'})
291 0 4 unless (defined $hlit)
300 1 4 unless (defined $hdist)
309 1 4 unless (defined $hclen)
323 5 56 unless (defined $code)
342 57 508 unless (defined $alpha)
346 480 28 if ($alpha < 16) { }
4 24 elsif ($alpha == 16) { }
16 8 elsif ($alpha == 17) { }
356 0 4 unless @$code_len == $_[0]{'hlit'} + $_[0]{'hdist'}
367 1 4 unless (defined $bits)
378 3 16 unless (defined $bits)
389 2 8 unless (defined $bits)
400 1306 7404 unless (defined $lit)
404 3012 4392 if ($lit >= 256)
405 4 3008 if ($lit_extra[$lit -= 256] < 0)
406 0 4 if $lit
408 4 0 if ($_[0]{'final'})
430 22 3008 unless (defined $bits)
440 426 3008 unless (defined $d)
450 0 3729 if $d >= 30
452 721 3008 unless (defined $bits)
460 3004 4 if ($dist >= $length) { }
466 4 8 $dist >= $remaining ? :