Branch Coverage

blib/lib/IO/Uncompress/AnyUncompress.pm
Criterion Covered Total %
branch 20 56 35.7


line true false branch
31 83 0 if $INC[-1] eq "."
98 1404 0 if (defined $IO::Uncompress::RawInflate::VERSION)
102 0 1404 unless defined $obj
108 1385 19 if $got->getValue("rawinflate")
113 1139 265 if ($magic)
114 0 1139 unless *$self->{'Info'} = $self->readHeader($magic)
121 0 265 if (defined $IO::Uncompress::UnLzma::VERSION and $got->getValue("unlzma"))
125 0 0 unless defined $obj
134 0 0 if (*$self->{'Info'} = $self->ckMagic(@possible))
140 0 265 if (defined $IO::Uncompress::UnXz::VERSION and $magic = $self->ckMagic("UnXz"))
142 0 0 unless *$self->{'Info'} = $self->readHeader($magic)
148 0 0 unless defined $obj
156 250 15 if (defined $IO::Uncompress::Bunzip2::VERSION and $magic = $self->ckMagic("Bunzip2"))
158 0 250 unless *$self->{'Info'} = $self->readHeader($magic)
163 0 250 unless defined $obj
171 0 15 if (defined $IO::Uncompress::UnLzop::VERSION and $magic = $self->ckMagic("UnLzop"))
174 0 0 unless *$self->{'Info'} = $self->readHeader($magic)
179 0 0 unless defined $obj
187 0 15 if (defined $IO::Uncompress::UnLzf::VERSION and $magic = $self->ckMagic("UnLzf"))
190 0 0 unless *$self->{'Info'} = $self->readHeader($magic)
195 0 0 unless defined $obj
203 0 15 if (defined $IO::Uncompress::UnZstd::VERSION and $magic = $self->ckMagic("UnZstd"))
206 0 0 unless *$self->{'Info'} = $self->readHeader($magic)
211 0 0 unless defined $obj
220 0 15 if (defined $IO::Uncompress::UnLzip::VERSION and $magic = $self->ckMagic("UnLzip"))
223 0 0 unless *$self->{'Info'} = $self->readHeader($magic)
228 0 0 unless defined $obj
252 1389 2719 if ($magic)