| blib/lib/Mojo/UserAgent/Transactor.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 67 | 78 | 85.9 |
| line | l | !l | condition |
|---|---|---|---|
| 39 | 0 | 2 | $res->error({"message", "Unknown file size"}) and return $tx |
| 40 | 0 | 2 | $res->error({"message", "File size mismatch"}) and return $tx |
| 41 | 0 | 2 | $res->error({"message", "Download complete"}) and return $tx |
| 42 | 0 | 2 | $res->error({"message", "Server does not support partial requests"}) and return $tx |
| 221 | 0 | 21 | ++$multipart and last |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 77 | 31 | 166 | 1993 | $proto eq "http" and not $req->is_handshake |
| 197 | 9 | 1984 | $proto eq "http" and not $req->is_handshake and not $socks | |
| 87 | 42 | 1 | 4 | $err and not $err->{'code'} |
| 88 | 40 | 1 | 2 | $tx->req->is_handshake and not $tx->is_websocket |
| 100 | 220 | 1 | 7 | my $proxy = $req->proxy and $req->via_proxy |
| 132 | 55 | 1 | 1 | $proto ne "http" and $proto ne "https" |
| 186 | 934 | 13 | 75 | $tx->req->is_handshake and $code == 101 |
| 322 | 17 | 2171 | 51 | $req->via_proxy and my $proxy = $req->proxy |
| line | l | !l | condition |
|---|---|---|---|
| 32 | 13 | 7 | $headers->accept_ranges // "" |
| 33 | 16 | 4 | $headers->content_length // 0 |
| 70 | 2190 | 0 | $url->protocol || 'http' |
| 120 | 961 | 10 | $res->code // 0 |
| 185 | 1011 | 11 | $tx->res->code // 0 |
| 202 | 93 | 0 | $url->protocol // "" |
| 219 | 8 | 58 | $headers->content_type // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 72 | 2122 | 68 | 0 | $url->port // ($proto eq "https" ? 443 : 80) |
| 105 | 2 | 1 | 2 | $req->is_handshake or $url->protocol eq "https" |
| 132 | 1 | 1 | 55 | $proto ne "http" and $proto ne "https" or not $location->host |
| 136 | 5 | 5 | 45 | $code == 307 or $code == 308 |
| 142 | 4 | 8 | 33 | $code == 303 || $method eq 'POST' |
| 234 | 6 | 1 | 32 | $method eq "GET" or $method eq "HEAD" |
| 284 | 1 | 6 | 0 | $value->{'filename'} //= path($file->path)->basename |
| 296 | 15 | 11 | 0 | $filename // $name |
| 307 | 2 | 1 | 48 | not defined $name or defined $headers->content_disposition |
| 323 | 39 | 12 | 0 | $proxy->port // ($proto eq "https" ? 443 : 80) |