Branch Coverage

File:apply.pl
Coverage:24.7%

line%coveragebranch
2450TFif -d $bin
2850TFunless defined $ENV{'SYSTEMROOT'}
3650TFif ($^O eq "MSWin32")
43100TFif -x $f
5050TFif check_exists_command($program)
6350TFunless defined $flags
84100TFif /^\s*(?:#.*)/
1110TF$output_joined ne '' ? :
12550TFif ($? == -1)
12950TFif ($? & 127)
1300TF$? & 128 ? :
13450TFif $? == 0
15150TFif ("$0" eq "-")
16350TFif ($? == 0)
16450TFif (compare_files($filename, $0))
1730TFif ($gh_err_text =~ /error connecting to / and $gh_err_text =~ /check your internet connection/)
1770TFif ($gh_err_text =~ /proxyconnect tcp:.*connect: connection refused/)
1800TFif (defined $ENV{$proxy})
1870TFif ($gh_err_text =~ /dial unix .*: connect: .*/)
1980TFif $exit == 0
2060TFif $gh_auth_status == 0
2110TFif (defined $ENV{$variable})
2150TFif ($gh_auth_status == 0)
2280TFunless (gh_is_happy($program))
2300TFdefined $ENV{'CI'} && $ENV{'CI'} ? :
2360TFif $_[0]
25750TFunless $spell_check_this_config =~ /\{.*\}/s
2590TFunless eval {         do {         %config = %{decode_json($spell_check_this_config);} } }
2710TFif ($?)
28950TFunless ($should_exclude_patterns =~ /\w/)
29150TFunless $should_exclude_patterns =~ /\w/
2960TFif (-f $excludes) { }
3000TFunless /./
3080TFunless $pattern =~ /./
3140TFif $need_to_add_excludes
32050TFunless @stale
32450TFunless -f $_
32750TFunless (@expect_files)
336100TFif /^(?:$re)(?:(?:\r|\n)*$|[# ].*)/
35050TFunless @add
35550TFif (-s $new_expect_file)
36750TFif $word =~ /\S/
3790TFif ($suffix)
3900TFunless $ret >> 8
3930TFif ($gh_err_text =~ /no valid artifacts found to download/)
4000TFif ($expired_json ne "")
4030TFunless eval {         do {         $expired = decode_json($expired_json) } }
4040TFif ($expired)
4120TFif ($gh_err_text =~ /no artifact matches any of the names or patterns provided/)
4150TFif ($github_server_url) { }
4240TFif ($gh_err_text =~ /HTTP 404: Not Found/)
4280TFunless ($gh_err_text =~ /HTTP 403: API rate limit exceeded for .*?./)
4330TFif $gh_err_text =~ /\brequest ID\s+(\S+)/
4340TFif $gh_err_text =~ /\btimestamp\s+(.*? UTC)/
4390TFunless ($has_gh_token)
4410TFunless $?
4470TFif ($curl_stdout =~ m[^HTTP/\S+\s+200]) { }
0TFelsif ($curl_stdout =~ m[^HTTP/\S+\s+403]) { }
4480TFif ($curl_stdout =~ /^x-ratelimit-remaining:\s+(\d+)$/m) { }
4500TFif $ratelimit_remaining > 10
4580TFif ($curl_stdout =~ /^retry-after:\s+(\d+)/m) { }
4650TFif $curl_stdout =~ m[^(HTTP/\S+)]
47550TFif $artifact =~ /'/
47850TFunless ($apply =~ /\{.*\}/s)
48850TFunless eval {         do {         $config_ref = decode_json($apply) } }
49350TFunless $git_repo_root =~ /\w/
51750TFunless defined $first
52050TFif (-s $first) { }
52650TFif ($line =~ /\s+artifact\.zip$/)
53050TFif ($line =~ /\s+1 file$/)
53450TFif $only_file
53750TFif ($has_artifact and $only_file) { }
5480TFif ($first =~ m[^\s*https://.*/([^/]+/[^/]+)/actions/runs/(\d+)(?:/attempts/\d+|)(?:#(\S+)|)\s*$]) { }
5530TFunless defined $repo and defined $run
56550TF$0 ne '-' ? :