Branch Coverage

blib/lib/Test/WWW/Mechanize/Mojo.pm
Criterion Covered Total %
branch 26 52 50.0


line true false branch
37 0 23 if (@_)
49 1 1 if (@_)
77 9 23 if (@_)
89 0 9 ref $_[0] ? :
95 9 0 if ($tester) { }
114 23 0 unless $response->header('Content-Base')
117 23 0 if $self->cookie_jar
120 0 23 if (not $self->{'catalyst_debug'} and $response->code == 500 and $response->content =~ /on Catalyst \d+\.\d+/u)
134 4 19 if ($response->header('Location') and $response->is_redirect and $self->redirect_ok($request, $response)) { }
172 2 21 unless defined $uri->scheme
173 2 21 unless defined $uri->host
176 23 0 if $self->cookie_jar
180 0 23 if $ENV{'MOJO_SERVER'}
183 23 0 unless ($request->header('Host'))
185 1 22 $self->has_host ? :
194 0 23 if $res
197 3 20 if @creds
230 0 23 unless ($request->uri->can('host_port'))
235 0 23 if ($self->allow_external and $request->uri->host_port ne 'localhost:80')
247 0 0 if $res
251 0 0 if ($server->path =~ m[^(.+)?/$]u)
254 0 0 if $path
260 0 0 if ($server->path)
270 0 0 if (@rp)
274 0 0 $sp eq $rp[0] ? :
279 0 0 if ($add_trailing)