Condition Coverage

blib/lib/Mojo/UserAgent.pm
Criterion Covered Total %
condition 52 69 75.3


and 2 conditions

line l !l condition
191 0 3 $tx->res->error({"message", "Unsupported protocol: $proto"}) and return $loop->next_tick(sub { $self->$cb($tx); } )
205 0 55 push @new, $queued and next

and 3 conditions

line !l l&&!r l&&r condition
55 79 926 3 $self->{'pid'} and $self->{'pid'} ne $$
209 69 796 0 $test && $stream->is_readable
233 1043 29 10 $close and not $res->code
1072 6 4 $close and not $res->code and not $res->error
306 853 31 3 @$queue and @$queue >= $max
316 71 0 952 not $url->is_abs and my $server = $self->server

or 2 conditions

line l !l condition
15 0 57 $ENV{'MOJO_CLIENT_DEBUG'} || 0
92 66 14 $self->{'connections'} // {}
202 1136 83 $self->{'queue'}{$loop} //= []
305 884 0 $self->{'queue'}{$c->{'ioloop'}} //= []

or 3 conditions

line l !l&&r !l&&!r condition
56 926 82 0 $self->{'pid'} //= $$
158 1 0 1 $tx->error or not $tx->res->is_success
1 0 1 $tx->error or not $tx->res->is_success or not $tx->keep_alive
191 220 2 3 $proto eq "http" or $proto eq "https"
222 0 3 $proto eq "http" or $proto eq "https" or $proto eq "http+unix"
205 21 34 867 $found or not grep({$_ eq $name;} @$queued)
302 107 0 908 $close or not $tx
107 0 908 $close or not $tx or not $max
0 22 886 $close or not $tx or not $max or not $tx->keep_alive
22 2 884 $close or not $tx or not $max or not $tx->keep_alive or $tx->error
327 0 978 0 $loop->next_tick(sub { } ) or $loop->one_tick
332 0 20 0 $self->{'connections'}{$id}{'timeout'} ||= $loop->timer($t, sub { $self->_error($id, "Request timeout"); } )
345 12 10 2610 not my $tx = $c->{'tx'} or $c->{'writing'}