| blib/lib/LWP/Authen/Basic.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 12 | 18 | 66.6 |
| line | true | false | branch |
|---|---|---|---|
| 20 | 0 | 8 | $proxy ? : |
| 21 | 0 | 8 | unless $url |
| 23 | 0 | 8 | $proxy ? : |
| 25 | 0 | 8 | $proxy ? : |
| 32 | 11 | 9 | if (defined $user) |
| 40 | 2 | 6 | if (not $proxy || $request->header($auth_header) and $ua->credentials($host_port, $realm)) |
| 47 | 2 | 4 | unless (defined $user and defined $pass) |
| 54 | 2 | 0 | if defined $olduser and defined $oldpass and $user eq $olduser and $pass eq $oldpass |
| 58 | 2 | 0 | unless $proxy |