Branch Coverage

blib/lib/swat.pm
Criterion Covered Total %
branch 1 76 1.3


line true false branch
37 0 0 unless ($config)
38 0 0 if (get_prop('suite_ini_file_path') and -f get_prop('suite_ini_file_path')) { }
0 0 elsif (get_prop('suite_yaml_file_path') and -f get_prop('suite_yaml_file_path')) { }
0 0 elsif (-f 'suite.ini') { }
0 0 elsif (-f 'suite.yaml') { }
40 0 0 unless $config = $config = 'Config::Tiny'->read($path)
46 0 0 unless $config = $config = 'Config::Tiny'->read($path)
60 0 0 if get_prop('response_done')
68 0 0 if (get_prop('response') and @{get_prop('response');}) { }
72 0 0 unless open F, '>', $content_file
76 0 0 unless open F, '>', "$content_file.stderr"
79 0 0 unless open F, '>', "$content_file.hdr"
96 0 0 if debug_mod12()
99 0 0 if (open HTTP_STATUS, "$content_file.http_status")
103 0 0 if debug_mod12()
104 0 0 if $http_status < 400 and $http_status > 0
105 0 0 if $http_status >= 400 and ignore_http_err()
109 0 0 if debug_mod12()
117 0 0 if ($http_status < 400 and $http_status > 0) { }
0 0 elsif (ignore_http_err()) { }
138 0 0 unless open CURL_ERR, "$content_file.stderr"
146 0 0 unless open CURL_HDR, "$content_file.hdr"
154 0 0 unless open CURL_RSP, "$content_file"
165 0 0 if (debug_mod12())
173 0 0 unless open F, $content_file
180 0 0 unless open F, "$content_file.hdr"
187 0 0 if (debug_mod12())
190 0 0 if (length $bshort < length $body_str) { }
231 0 0 if debug_mod2()
237 0 0 if http_method() eq 'META'
253 0 0 if $r->{'type'} eq 'debug'
254 0 0 if $r->{'type'} eq 'check_expression'
258 0 0 if ($err)
270 0 0 if ($ENV{'swat_disable_color'}) { }
280 0 0 unless open META, resource_dir() . '/meta.txt'
294 0 0 if ($status) { }
310 1 0 if ($STATUS == 1) { }
0 0 elsif ($STATUS == -1) { }