Branch Coverage

blib/lib/IO/Uncompress/Gunzip.pm
Criterion Covered Total %
branch 63 72 87.5


line true false branch
73 36 1622 if length $magic != 2
77 588 1034 unless isGzipMagic($magic)
103 493 495 if (*$self->{'Strict'})
105 2 491 if $CRC32 != *$self->{'Uncomp'}->crc32
108 1 490 if $ISIZE != $exp_isize
119 0 1622 if length $buffer < 2
133 0 0 if length $magic != 2
138 0 0 unless isGzipMagic($magic)
142 0 0 unless defined $status
152 0 1034 unless $self->smartReadExact(\$buffer, 8)
162 1 1033 unless $cm == 8
166 1 1032 if $flag & 224
171 471 561 if ($flag & 4)
173 1 470 unless $self->smartReadExact(\$buffer, 2)
177 2 468 unless $self->smartReadExact(\$EXTRA, $XLEN)
181 446 15 if ($XLEN and *$self->{'ParseExtra'})
184 4 442 if defined $bad
190 114 911 if ($flag & 8)
193 4 2197 unless $self->smartReadExact(\$buffer, 1)
195 110 2087 if $buffer eq "\0"
201 1 109 if *$self->{'Strict'} and $origname =~ /$IO::Uncompress::Gunzip::GZIP_FNAME_INVALID_CHAR_RE/o
205 451 569 if ($flag & 16)
208 7 7914 unless $self->smartReadExact(\$buffer, 1)
210 444 7470 if $buffer eq "\0"
216 1 443 if *$self->{'Strict'} and $comment =~ /$IO::Uncompress::Gunzip::GZIP_FCOMMENT_INVALID_CHAR_RE/o
219 446 566 if ($flag & 2)
220 2 444 unless $self->smartReadExact(\$buffer, 2)
227 1 443 if *$self->{'Strict'} and $crc16 != $HeaderCRC
258 41 968 $keep eq "\037\213\cH\000\000\000\000\000\000\377" ? :
1009 0 $cm == 8 ? :
7 1002 $flag & 1 ? :
443 566 $flag & 2 ? :
109 900 $flag & 8 ? :
443 566 $flag & 16 ? :
464 545 $flag & 4 ? :
1006 3 defined $IO::Uncompress::Gunzip::GZIP_OS_Names{$os} ? :