Branch Coverage

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


line true false branch
30 0 0 $ver ? :
0 0 if $_->{'backend'} eq $impl
33 0 0 unless (@matching_releases)
34 0 0 $ver ? :
38 0 0 if ($ver and @matching_releases > 1)
43 0 0 unless ($ver)
50 0 0 if (-d $name)
57 0 0 unless ($res->{'success'})
64 0 0 if (_my_platform() eq 'win') { }
75 0 0 unless opendir DIR, "."
77 0 0 if (-d $file and $file =~ /^rakudo-/)
83 0 0 unless ($rakudo_dir)
108 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()
121 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'}
149 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'} =~ /darwin/i && `sysctl -n machdep.cpu.brand_string` =~ /Intel/i ? :
0 0 $App::Rakubrew::Download::Config{'archname'} =~ /darwin/i && `sysctl -n machdep.cpu.brand_string` =~ /Apple/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 ? :
152 0 0 unless ($arch)
163 0 0 unless ($res->{'success'})
185 0 0 unless ($zip)
196 0 0 if (index($path, "..") != -1)
203 0 0 unless (-d $target_dir)
204 0 0 unless (make_path($target_dir))
210 0 0 unless $file
214 0 0 unless (open FH, ">", $target_file)
227 0 0 if ($status < 0)