Branch Coverage

blib/lib/Compress/Raw/Zlib.pm
Criterion Covered Total %
branch 68 102 66.7


line true false branch
72 0 32 if $error
120 11 74 unless $p->parse(@_)
143 0 11 @_ ? :
169 6 79 if (@_ == 0) { }
8 71 elsif (@_ == 1) { }
174 2 6 if not defined $href or not ref $href or ref $href ne 'HASH'
184 2 69 if $count % 2 != 0
196 0 646 if @$v != 4
201 0 646 unless $self->_checkType($key, \$value, $type, 0, \$x)
206 646 0 if ($firstTime or not $sticky)
223 91 3 if ($$got{$canonkey} and $firstTime || !$$got{$canonkey}[4]) { }
228 4 87 unless $self->_checkType($key, $value, $type, 1, \$s)
238 3 74 if (@Bad)
258 0 737 if ($type & 256)
269 77 660 if ($type & 1) { }
217 443 elsif ($type & 2) { }
124 319 elsif ($type & 4) { }
319 0 elsif ($type & 8) { }
0 0 elsif ($type & 16) { }
276 0 217 if $validate and not defined $value
278 4 213 if $validate and not $value =~ /^\d+$/
281 201 12 defined $value ? :
286 0 124 if $validate and not defined $value
288 0 124 if $validate and not $value =~ /^-?\d+$/
291 118 6 defined $value ? :
296 0 319 if $validate and defined $value and not $value =~ /^\d*$/
298 319 0 defined $value ? :
303 0 0 defined $value ? :
326 0 642 if (@_)
355 1 31 unless $got->value('Bufsize') >= 1
360 24 7 if $got->value('AppendOutput')
361 0 31 if $got->value('CRC32')
362 0 31 if $got->value('ADLER32')
391 1 35 unless $got->value('Bufsize') >= 1
396 26 9 if $got->value('AppendOutput')
397 0 35 if $got->value('CRC32')
398 0 35 if $got->value('ADLER32')
399 32 3 if $got->value('ConsumeInput')
419 0 1 unless $got->value('Bufsize') >= 1
425 0 1 if $got->value('CRC32')
426 0 1 if $got->value('ADLER32')
450 0 0 unless $got->value('Bufsize') >= 1
455 0 0 if $got->value('AppendOutput')
456 0 0 if $got->value('CRC32')
457 0 0 if $got->value('ADLER32')
478 0 0 if ($status == Z_OK() and $_[2])
497 1 4 unless $got->parsed('Level') + $got->parsed('Strategy') + $got->parsed('Bufsize')
501 1 3 if $got->parsed('Bufsize') and $got->value('Bufsize') <= 1
506 2 1 if $got->parsed('Level')
507 2 1 if $got->parsed('Strategy')
508 1 2 if $got->parsed('Bufsize')