Branch Coverage

blib/lib/Compress/Raw/Zlib.pm
Criterion Covered Total %
branch 73 102 71.5


line true false branch
120 0 57 if $error
169 11 86 unless $p->parse(@_)
192 0 11 @_ ? :
218 11 86 if (@_ == 0) { }
9 77 elsif (@_ == 1) { }
223 2 7 if not defined $href && ref $href or ref $href ne "HASH"
233 2 75 if $count % 2 != 0
245 0 780 if @$v != 4
250 0 780 unless $self->_checkType($key, \$value, $type, 0, \$x)
255 780 0 if ($firstTime or not $sticky)
272 131 3 if ($got->{$canonkey} and $firstTime || !$got->{$canonkey}[4]) { }
277 4 127 unless $self->_checkType($key, $value, $type, 1, \$s)
287 3 86 if (@Bad)
318 90 821 if ($type & 1) { }
246 575 elsif ($type & 2) { }
150 425 elsif ($type & 4) { }
425 0 elsif ($type & 8) { }
325 0 246 if $validate and not defined $value
327 4 242 if $validate and not $value =~ /^\d+$/
330 228 14 defined $value ? :
335 0 150 if $validate and not defined $value
337 0 150 if $validate and not $value =~ /^-?\d+$/
340 143 7 defined $value ? :
345 0 72 if $validate and defined $value and not $value =~ /^\d*$/
347 425 0 defined $value ? :
375 0 784 if (@_)
405 1 33 unless $got->value("Bufsize") >= 1
410 21 12 if $got->value("AppendOutput")
411 0 33 if $got->value("CRC32")
412 0 33 if $got->value("ADLER32")
415 2 31 if ($windowBits & MAX_WBITS()) == 0
460 1 44 unless $got->value("Bufsize") >= 1
465 31 13 if $got->value("AppendOutput")
466 0 44 if $got->value("CRC32")
467 0 44 if $got->value("ADLER32")
468 38 6 if $got->value("ConsumeInput")
469 8 36 if $got->value("LimitOutput")
473 5 39 if ($windowBits & MAX_WBITS()) == 0
506 0 1 unless $got->value("Bufsize") >= 1
512 0 1 if $got->value("CRC32")
513 0 1 if $got->value("ADLER32")
537 0 0 unless $got->value("Bufsize") >= 1
542 0 0 if $got->value("AppendOutput")
543 0 0 if $got->value("CRC32")
544 0 0 if $got->value("ADLER32")
565 0 0 if ($status == Z_OK() and $_[2])
584 1 5 unless $got->parsed("Level") + $got->parsed("Strategy") + $got->parsed("Bufsize")
588 1 4 if $got->parsed("Bufsize") and $got->value("Bufsize") <= 1
593 3 1 if $got->parsed("Level")
594 3 1 if $got->parsed("Strategy")
595 2 2 if $got->parsed("Bufsize")