Condition Coverage

blib/lib/Compress/Zlib.pm
Criterion Covered Total %
condition 29 35 82.9


and 3 conditions

line !l l&&!r l&&r condition
101 8 25 3 $gz->eof and $value == 0
128 0 1 0 ref $file and ref $file eq 'SCALAR'
467 3 2 46 $magic1 == 31 and $magic2 == 139
5 2 44 $magic1 == 31 and $magic2 == 139 and $method == Z_DEFLATED()
7 2 42 $magic1 == 31 and $magic2 == 139 and $method == Z_DEFLATED() and not $flags & 224
540 3 1 5 $len == length $output and $crc == crc32($output)

or 2 conditions

line l !l condition
96 74 126 $gz->errorNo || 0

or 3 conditions

line l !l&&r !l&&!r condition
78 0 0 80 $value == Z_ERRNO() or $value > 2
128 5 54 1 isaFilehandle $file or isaFilename $file
59 0 1 isaFilehandle $file or isaFilename $file or ref $file and ref $file eq 'SCALAR'
166 5 4 24 $self->gzeof or $len == 0
420 1 10 0 shift @_ || Compress::Zlib::Z_FINISH()