blib/lib/Mojo/UserAgent/Transactor.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 59 | 66 | 89.3 |
line | l | !l | condition |
---|---|---|---|
178 | 0 | 21 | ++$multipart and last |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
36 | 31 | 141 | 1851 | $proto eq "http" and not $req->is_handshake |
172 | 9 | 1842 | $proto eq "http" and not $req->is_handshake and not $socks | |
46 | 42 | 1 | 4 | $err and not $err->{'code'} |
47 | 40 | 1 | 2 | $tx->req->is_handshake and not $tx->is_websocket |
59 | 178 | 1 | 7 | my $proxy = $req->proxy and $req->via_proxy |
91 | 51 | 1 | 1 | $proto ne "http" and $proto ne "https" |
143 | 869 | 12 | 63 | $tx->req->is_handshake and $code == 101 |
279 | 17 | 1987 | 51 | $req->via_proxy and my $proxy = $req->proxy |
line | l | !l | condition |
---|---|---|---|
29 | 2023 | 0 | $url->protocol || 'http' |
79 | 895 | 10 | $res->code // 0 |
142 | 933 | 11 | $tx->res->code // 0 |
159 | 80 | 0 | $url->protocol // "" |
176 | 8 | 58 | $headers->content_type // "" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
31 | 1955 | 68 | 0 | $url->port // ($proto eq "https" ? 443 : 80) |
64 | 2 | 1 | 2 | $req->is_handshake or $url->protocol eq "https" |
91 | 1 | 1 | 51 | $proto ne "http" and $proto ne "https" or not $location->host |
95 | 5 | 5 | 41 | $code == 307 or $code == 308 |
101 | 4 | 8 | 29 | $code == 303 || $method eq 'POST' |
191 | 6 | 1 | 32 | $method eq "GET" or $method eq "HEAD" |
241 | 1 | 6 | 0 | $value->{'filename'} //= path($file->path)->basename |
253 | 15 | 11 | 0 | $filename // $name |
264 | 2 | 1 | 48 | not defined $name or defined $headers->content_disposition |
280 | 39 | 12 | 0 | $proxy->port // ($proto eq "https" ? 443 : 80) |