Branch Coverage

File:lib/CheckSpelling/Apply.pm
Coverage:52.3%

line%coveragebranch
36100TFif ($^O eq "MSWin32")
43100TFif -x $f
50100TFif check_exists_command($command)
63100TFif defined $token and $token ne ""
65100TFif defined $token and $token ne ""
7550TFunless defined $flags
96100TFif /^\s*(?:#.*)/
12350TF$output_joined ne '' ? :
13750TFif ($? == -1)
14150TFif ($? & 127)
1420TF$? & 128 ? :
14650TFif $? == 0
16350TFif ("$0" eq "-")
17550TFif ($? == 0)
17650TFif (compare_files($filename, $0))
18550TFif ($gh_err_text =~ /error connecting to / and $gh_err_text =~ /check your internet connection/)
189100TFif ($gh_err_text =~ /proxyconnect tcp:.*connect: connection refused/)
192100TFif (defined $ENV{$proxy})
199100TFif ($gh_err_text =~ /dial unix .*: connect: .*/)
21050TFif $exit_code == 0
21850TFif $gh_auth_status == 0
223100TFif (defined $ENV{$variable})
22750TFif ($gh_auth_status == 0)
24050TFunless (gh_is_happy($program))
24250TFdefined $ENV{'CI'} && $ENV{'CI'} ? :
26550TFunless $spell_check_this_config =~ /\{.*\}/s
26750TFunless eval {         do {         %config = %{decode_json($spell_check_this_config);} } }
27950TFif ($?)
29650TFunless ($should_exclude_patterns =~ /\w/)
29850TFunless $should_exclude_patterns =~ /\w/
30350TFif (-f $excludes) { }
30750TFunless /./
31550TFunless $pattern =~ /./
32150TFif $need_to_add_excludes
32750TFunless @stale
33050TFunless -f $_
33350TFunless (@expect_files)
342100TFif /^(?:$re)(?:(?:\r|\n)*$|[# ].*)/
35650TFunless @add
36050TFif (-s $new_expect_file)
37250TFif $word =~ /\S/
39550TFif defined $gh_token
403100TFunless ($curl_result == 0)
40450TFif ($curl_stdout eq "")
43650TFif ($count == 0)
456100TFif (defined $page)
45950TFif (defined $id_1 and defined $id_2)
46050TFif ($id_2 > $id_1)
468100TFif (defined $download)
480100TFif (defined $download)
49150TFif defined $gh_token
49950TFif ($curl_result != 0)
50050TFif ($curl_stdout eq "")
52850TFif ($suffix)
53950TFunless $ret >> 8
542100TFif ($gh_err_text =~ /no valid artifacts found to download|"Artifact has expired"/)
54950TFif ($expired_json ne "")
55250TFunless eval {         do {         $expired = decode_json($expired_json) } }
55350TFif ($expired)
56150TFif ($gh_err_text =~ /no artifact matches any of the names or patterns provided/)
5640TFif ($github_server_url) { }
57350TFif ($gh_err_text =~ /HTTP 404: Not Found|"status":\s*"404"/)
5770TFif ($gh_err_text =~ /API rate limit exceeded for .*?./ and $gh_err_text =~ /HTTP 403|"status":\s*"403"/) { }
0TFelsif ($gh_err_text =~ m[dial tcp \S+:\d+: i/o timeout$]) { }
5790TFif ($retries_remaining <= 0)
5880TFif $gh_err_text =~ /\brequest ID\s+(\S+)/
5890TFif $gh_err_text =~ /\btimestamp\s+(.*? UTC)/
5940TFunless ($has_gh_token)
5960TFif defined $gh_token
6020TFif ($curl_stdout =~ m[^HTTP/\S+\s+200]) { }
0TFelsif ($curl_stdout =~ m[^HTTP/\S+\s+403]) { }
6030TFif ($curl_stdout =~ /^x-ratelimit-remaining:\s+(\d+)$/m) { }
6050TFif $ratelimit_remaining > 10
6130TFif ($curl_stdout =~ /^retry-after:\s+(\d+)/m) { }
6200TFif $curl_stdout =~ m[^(HTTP/\S+)]
63150TFif $artifact =~ /'/
63350TFunless ($apply =~ /\{.*\}/s)
64350TFunless eval {         do {         $config_ref = decode_json($apply) } }
64850TFunless $git_repo_root =~ /\w/
664100TFif ($line =~ /\s+artifact\.zip$/)
668100TFif ($line =~ /\s+1 file$/)
67250TFif $only_file
67650TFif ($has_artifact and $only_file) { }
70250TFunless defined $first
706100TFif (-s $first) { }
71050TFif ($first =~ m[^\s*https://.*/([^/]+/[^/]+)/actions/runs/(\d+)(?:/attempts/\d+|)(?:#(\S+)|)\s*$]) { }
71550TFunless defined $repo and defined $run