Branch Coverage

blib/lib/App/Rakubrew/VersionHandling.pm
Criterion Covered Total %
branch 0 148 0.0


line true false branch
45 0 0 if (defined $ENV{$App::Rakubrew::VersionHandling::env_var} or defined $ENV{'PL6ENV_VERSION'}) { }
47 0 0 if (version_exists($version)) { }
68 0 0 if (-f $filepath)
70 0 0 if (version_exists($version)) { }
88 0 0 if $version eq "system"
90 0 0 unless $path
91 0 0 unless is_version_path_broken($path)
98 0 0 unless $path
100 0 0 if (-f catfile($path, "bin", $exec))
110 0 0 unless (version_exists($version))
115 0 0 if (is_version_broken($version))
123 0 0 if ($version) { }
134 0 0 unless (-e catfile($App::Rakubrew::VersionHandling::prefix, "CURRENT"))
146 0 0 unless $silent
152 0 0 $ignore eq 'shell' ? :
153 0 0 if defined $version
155 0 0 if (get_brew_mode() eq "shim")
158 0 0 $ignore eq 'local' ? :
159 0 0 if defined $version
168 0 0 if ($mode eq 'env') { }
0 0 elsif ($mode eq 'shim') { }
182 0 0 unless (-e catfile($App::Rakubrew::VersionHandling::prefix, "MODE"))
188 0 0 if ($mode ne "env" and $mode ne "shim")
189 0 0 unless $silent
190 0 0 unless $silent
199 0 0 if (get_brew_mode() eq "env")
207 0 0 unless defined $version
215 0 0 if (-f $version_file) { }
228 0 0 if -d catdir($cand, "bin")
237 0 0 if -f $version_path
240 0 0 if $version_path or $no_error
252 0 0 if @_ and not $_[0] =~ /^--/
255 0 0 unless (defined $ver)
260 0 0 if ($impl eq 'moar-blead') { }
0 0 elsif ($impl =~ /$combined_regex/) { }
0 0 elsif ($impl =~ /$version_regex/) { }
285 0 0 unless ($target)
287 0 0 if (whence($prog))
305 0 0 if ($version eq 'system') { }
0 0 elsif ($^O =~ /win32/i and (my_fileparse($prog))[2] eq '') { }
323 0 0 if @targets
343 0 0 if (check_prog_name_match($prog, $file))
352 0 0 if $suffix_a eq ".exe" and $suffix_b ne ".exe"
353 0 0 if $suffix_a ne ".exe" and $suffix_b eq ".exe"
354 0 0 if $suffix_a eq ".exe" and $suffix_b eq ".exe"
355 0 0 if $suffix_a eq ".bat" and $suffix_b ne ".bat"
356 0 0 if $suffix_a ne ".bat" and $suffix_b eq ".bat"
357 0 0 if $suffix_a eq ".bat" and $suffix_b eq ".bat"
358 0 0 if $suffix_a eq ".raku" and $suffix_b ne ".raku"
359 0 0 if $suffix_a ne ".raku" and $suffix_b eq ".raku"
360 0 0 if $suffix_a eq ".raku" and $suffix_b eq ".raku"
361 0 0 if $suffix_a eq ".p6" and $suffix_b ne ".p6"
362 0 0 if $suffix_a ne ".p6" and $suffix_b eq ".p6"
363 0 0 if $suffix_a eq ".p6" and $suffix_b eq ".p6"
364 0 0 if $suffix_a eq ".pl6" and $suffix_b ne ".pl6"
365 0 0 if $suffix_a ne ".pl6" and $suffix_b eq ".pl6"
366 0 0 if $suffix_a eq ".pl6" and $suffix_b eq ".pl6"
367 0 0 if $suffix_a eq ".pl" and $suffix_b ne ".pl"
368 0 0 if $suffix_a ne ".pl" and $suffix_b eq ".pl"
369 0 0 if $suffix_a eq ".pl" and $suffix_b eq ".pl"
370 0 0 if $suffix_a eq "" and $suffix_b ne ""
371 0 0 if $suffix_a ne "" and $suffix_b eq ""
372 0 0 if $suffix_a eq "" and $suffix_b eq ""
380 0 0 if (-e $path)
397 0 0 if $version eq "system"
398 0 0 if is_version_broken($version)
400 0 0 if (-f $path)
401 0 0 if ($pathmode) { }
419 0 0 if $no_error and not $version_path
428 0 0 if get_brew_mode() ne "shim"
432 0 0 if $version eq "system"
433 0 0 if is_version_broken($version)
442 0 0 if $entry =~ /^\./
450 0 0 if ($^O =~ /win32/i) { }