Branch Coverage

blib/lib/CPAN/Mirror/Tiny/Archive.pm
Criterion Covered Total %
branch 0 86 0.0


line true false branch
13 0 0 $outfile ? :
27 0 0 $file =~ /\.zip$/ ? :
44 0 0 if ($tar)
46 0 0 $out =~ /bsdtar/ ? :
47 0 0 if $out =~ /GNU.*1\.13/i or $^O eq "MSWin32" or $^O eq "solaris" or $^O eq "hpux"
50 0 0 if ($tar and not $self->{'tar_bad'})
52 0 0 unless $self->{'_init_all'}
58 0 0 if ($tar and $gzip and $bzip2)
60 0 0 unless $self->{'_init_all'}
63 0 0 if (eval { do { require Archive::Tar } })
66 0 0 unless $self->{'_init_all'}
69 0 0 if $self->{'_init_all'}
77 0 0 if ($unzip)
79 0 0 unless $self->{'_init_all'}
82 0 0 if (eval { do { require Archive::Zip } })
85 0 0 unless $self->{'_init_all'}
88 0 0 if $self->{'_init_all'}
98 0 0 $file =~ /\.bz2$/ ? :
100 0 0 if $exit != 0
103 0 0 if $exit == 0 and -d $root
105 0 0 unless $wantarray
114 0 0 $file =~ /\.bz2$/ ? :
117 0 0 if $exit != 0
120 0 0 $^O eq 'MSWin32' && $self->{'tar_kind'} ne 'bsd' ? :
122 0 0 if $exit != 0 or not $out
125 0 0 if $exit == 0 and -d $root
127 0 0 unless $wantarray
139 0 0 unless $ok
142 0 0 if @file and -d $root
144 0 0 unless $wantarray
154 0 0 unless (length $root)
156 0 0 if $root
169 0 0 if $exit != 0
172 0 0 if $exit == 0 and -d $root
174 0 0 unless $wantarray
187 0 0 if $status != Archive::Zip::AZ_OK()
190 0 0 if $af =~ m[^(/|\.\./)]
192 0 0 if $status != Archive::Zip::AZ_OK()
195 0 0 unless $root
198 0 0 if -d $root
200 0 0 unless $wantarray
208 0 0 unless ($root =~ s[^\s+testing:\s+([^/]+)/.*?\s+OK$][$1])
210 0 0 if $root