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 ? :
25 0 0 $file =~ /\.zip$/u ? :
40 0 0 if ($tar)
42 0 0 $out =~ /bsdtar/u ? :
43 0 0 if $out =~ /GNU.*1\.13/iu or $^O eq "MSWin32" or $^O eq "solaris" or $^O eq "hpux"
46 0 0 if ($tar and not $self->{'tar_bad'})
48 0 0 unless $self->{'_init_all'}
54 0 0 if ($tar and $gzip and $bzip2)
56 0 0 unless $self->{'_init_all'}
59 0 0 if (eval { do { require Archive::Tar } })
62 0 0 unless $self->{'_init_all'}
65 0 0 if $self->{'_init_all'}
72 0 0 if ($unzip)
74 0 0 unless $self->{'_init_all'}
77 0 0 if (eval { do { require Archive::Zip } })
80 0 0 unless $self->{'_init_all'}
83 0 0 if $self->{'_init_all'}
92 0 0 $file =~ /\.bz2$/u ? :
94 0 0 if $exit != 0
97 0 0 if $exit == 0 and -d $root
99 0 0 unless $wantarray
107 0 0 $file =~ /\.bz2$/u ? :
110 0 0 if $exit != 0
113 0 0 $^O eq 'MSWin32' && $self->{'tar_kind'} ne 'bsd' ? :
115 0 0 if $exit != 0 or not $out
118 0 0 if $exit == 0 and -d $root
120 0 0 unless $wantarray
131 0 0 unless $ok
134 0 0 if @file and -d $root
136 0 0 unless $wantarray
145 0 0 unless (length $root)
147 0 0 if $root
159 0 0 if $exit != 0
162 0 0 if $exit == 0 and -d $root
164 0 0 unless $wantarray
176 0 0 if $status != Archive::Zip::AZ_OK()
179 0 0 if $af =~ m[^(/|\.\./)]u
181 0 0 if $status != Archive::Zip::AZ_OK()
184 0 0 unless $root
187 0 0 if -d $root
189 0 0 unless $wantarray
196 0 0 unless ($root =~ s[^\s+testing:\s+([^/]+)/.*?\s+OK$][$1]u)
198 0 0 if $root