Branch Coverage

blib/lib/App/Rakubrew/Download.pm
Criterion Covered Total %
branch 0 72 0.0


line true false branch
31 0 0 $ver ? :
0 0 if $_->{'backend'} eq $impl
34 0 0 unless (@matching_releases)
35 0 0 $ver ? :
39 0 0 if ($ver and @matching_releases > 1)
44 0 0 unless ($ver)
51 0 0 if (-d $name)
58 0 0 unless ($res->{'success'})
65 0 0 if (_my_platform() eq 'win') { }
76 0 0 unless opendir DIR, "."
78 0 0 if (-d $file and $file =~ /^rakudo-/)
84 0 0 unless ($rakudo_dir)
109 0 0 _my_platform() eq 'win' ? :
0 0 if $_->{'name'} eq "rakudo" and $_->{'type'} eq "archive" and $_->{'platform'} eq _my_platform() and $_->{'arch'} eq _my_arch()
122 0 0 if $_->{'build_rev'} > $this->{'build_rev'} and $_->{'name'} eq $this->{'name'} and $_->{'type'} eq $this->{'type'} and $_->{'platform'} eq $this->{'platform'} and $_->{'arch'} eq $this->{'arch'} and $_->{'format'} eq $this->{'format'}
142 0 0 if ($App::Rakubrew::Download::Config{'archname'} =~ /darwin/i) { }
149 0 0 $mac_brand_string =~ /Intel/i ? :
0 0 $mac_brand_string =~ /Apple/i ? :
163 0 0 $App::Rakubrew::Download::Config{'archname'} =~ /s390x-linux/i ? :
0 0 $App::Rakubrew::Download::Config{'archname'} =~ /arm-linux-gnueabihf/i ? :
0 0 $App::Rakubrew::Download::Config{'archname'} =~ /aarch64/i ? :
0 0 $App::Rakubrew::Download::Config{'archname'} =~ /i686/i ? :
0 0 $App::Rakubrew::Download::Config{'archname'} =~ /x86/i ? :
0 0 $App::Rakubrew::Download::Config{'archname'} =~ /amd64/i ? :
0 0 $App::Rakubrew::Download::Config{'archname'} =~ /x86_64/i ? :
0 0 $App::Rakubrew::Download::Config{'archname'} =~ /x64/i ? :
167 0 0 unless ($arch)
170 0 0 if $mac_brand_string
179 0 0 unless ($res->{'success'})
201 0 0 unless ($zip)
212 0 0 if (index($path, "..") != -1)
219 0 0 unless (-d $target_dir)
220 0 0 unless (make_path($target_dir))
226 0 0 unless $file
230 0 0 unless (open FH, ">", $target_file)
243 0 0 if ($status < 0)