Condition Coverage

blib/lib/Mojo/Message/Request.pm
Criterion Covered Total %
condition 43 53 81.1


and 2 conditions

line l !l condition
182 0 32 0 $base->scheme($1) and $self->version($2)

and 3 conditions

line !l l&&!r l&&r condition
72 87 106 778 ($headers->content_length // "") eq 0 and $self->method eq "GET"
79 965 0 6 my $info = $url->userinfo and not $headers->authorization
84 955 2 14 my $proxy = $self->proxy and $self->via_proxy
128 32 67 978 not $base->host and my $host = $headers->host
138 1064 6 7 $self->reverse_proxy and ($headers->header("X-Forwarded-Proto") // "") eq "https"
147 2140 0 14 $_[0] && $_[0] =~ /Basic (.+)$/u
217 954 2 9 $self->proxy and $self->via_proxy
956 1 8 $self->proxy and $self->via_proxy and $url->protocol ne "https"

or 2 conditions

line l !l condition
72 968 3 $headers->content_length // ""
96 338 4350 $_[0]->headers->upgrade // ""
103 1 1 (shift())->headers->header("X-Requested-With") // ""
116 446 1051 $self->{'state'} // ""
138 7 6 $headers->header("X-Forwarded-Proto") // ""
182 32 0 $env->{'SERVER_PROTOCOL'} // ""
185 2 30 $env->{'HTTPS'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
43 1 211 13 $headers->cookie || ()
100 0 3 0 $url->protocol || $url->base->protocol
107 413 310 0 $_[0]{'params'} ||= $_[0]->body_params->clone->append($_[0]->query_params)
218 3 0 0 $url->port // ($url->protocol eq "https" ? 443 : 80)