Branch Coverage

blib/lib/swat.pm
Criterion Covered Total %
branch 0 70 0.0


line true false branch
36 0 0 unless ($config)
37 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') { }
39 0 0 unless $config = $config = 'Config::Tiny'->read($path)
45 0 0 unless $config = $config = 'Config::Tiny'->read($path)
59 0 0 if get_prop('response_done')
67 0 0 if (get_prop('response') and @{get_prop('response');}) { }
71 0 0 unless open F, '>', $content_file
75 0 0 unless open F, '>', "$content_file.stderr"
78 0 0 unless open F, '>', "$content_file.hdr"
95 0 0 if debug_mod12()
98 0 0 if (open HTTP_STATUS, "$content_file.http_status")
102 0 0 if debug_mod12()
103 0 0 if $http_status < 400 and $http_status > 0
104 0 0 if $http_status >= 400 and ignore_http_err()
108 0 0 if debug_mod12()
116 0 0 if ($http_status < 400 and $http_status > 0) { }
0 0 elsif (ignore_http_err()) { }
137 0 0 unless open CURL_ERR, "$content_file.stderr"
145 0 0 unless open CURL_HDR, "$content_file.hdr"
153 0 0 unless open CURL_RSP, "$content_file"
164 0 0 if (debug_mod12())
172 0 0 unless open F, $content_file
179 0 0 unless open F, "$content_file.hdr"
186 0 0 if (debug_mod12())
189 0 0 if (length $bshort < length $body_str) { }
230 0 0 if debug_mod2()
236 0 0 if http_method() eq 'META'
251 0 0 if $r->{'type'} eq 'debug'
252 0 0 if $r->{'type'} eq 'check_expression'
256 0 0 if $err
265 0 0 if ($ENV{'swat_disable_color'}) { }
275 0 0 unless open META, resource_dir() . '/meta.txt'