Branch Coverage

blib/lib/HON/Http/UrlChecker/Service.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
71 2 6 if (p_isUrlAllowed($url)) { }
128 8 17 if (defined $response->header($field))
134 9 6 if (defined $response->$field)
138 5 4 if ($field eq 'code')
142 4 5 if ($field eq 'message')
163 1 3 if (scalar @redirects > 0)
184 2 10 unless $url
186 5 5 unless $uri->scheme and $uri->opaque
188 2 3 if ($uri->scheme eq 'http' or $uri->scheme eq 'https')
189 1 1 unless $uri->authority