Condition Coverage

blib/lib/Compress/Zlib.pm
Criterion Covered Total %
condition 39 50 78.0


and 3 conditions

line !l l&&!r l&&r condition
101 20 7 26 $gz->eof and $value == 0
128 0 1 0 ref $file and ref $file eq "SCALAR"
510 3 2 48 $magic1 == 31 and $magic2 == 139
5 2 46 $magic1 == 31 and $magic2 == 139 and $method == Z_DEFLATED()
4 2 44 $magic1 == 31 and $magic2 == 139 and $method == Z_DEFLATED() and not $flags & 224
600 3 1 7 $len == length $output and $crc == Compress::Raw::Zlib::crc32($output)

or 2 conditions

line l !l condition
96 15 223 $gz->errorNo || 0

or 3 conditions

line l !l&&r !l&&!r condition
72 0 0 75 $value == Z_ERRNO() or $value > 2
128 5 65 1 &isaFilehandle($file) or &isaFilename($file)
70 0 1 &isaFilehandle($file) or &isaFilename($file) or ref $file and ref $file eq "SCALAR"
167 5 4 24 $self->gzeof or $len == 0
202 29 1 0 utf8::downgrade($_[0], 1) or croak("Wide character in gzwrite")
313 8 1 0 utf8::downgrade($$in, 1) or croak("Wide character in compress")
349 8 1 0 utf8::downgrade($$in, 1) or croak("Wide character in uncompress")
443 5 10 0 shift() || Compress::Zlib::Z_FINISH()
482 5 1 0 utf8::downgrade($$string, 1) or croak("Wide character in memGzip")
570 54 1 0 utf8::downgrade($$string, 1) or croak("Wide character in memGunzip")