Branch Coverage

blib/lib/Test/WWW/Mechanize/HSS.pm
Criterion Covered Total %
branch 22 40 55.0


line true false branch
49 0 0 $_[1] ? :
59 7 0 if $s->can('after_setup_listener')
74 0 9 if ($request->uri->as_string =~ m[^/])
78 9 0 if $self->cookie_jar
81 1 8 if ($response->header('Location') and $self->redirect_ok($request, $response)) { }
113 0 9 unless defined $uri->scheme
114 0 9 unless defined $uri->host
115 9 0 if $self->cookie_jar
118 9 0 unless ($request->header('Host'))
119 0 9 $self->has_host ? :
127 0 9 if @creds
132 0 9 unless open my $rsh, '<', \$rs
137 0 9 unless open my $STDOUT, '>', \my($stdout)
147 0 9 if $self->can('accept_hook')
149 1 8 $request->uri->query ? :
158 0 9 unless ($s->valid_http_method($method))
168 1 8 defined $query_string ? :
181 9 0 if ($proto =~ m[HTTP/(\d(\.\d)?)$] and $1 >= 1)
188 9 0 if $s->can('post_setup_hook')
199 9 0 if ($ok) { }