| blib/lib/WWW/Suffit/Plugin/BasicAuth.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 0 | 28 | 0.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 362 | 0 | 0 | 0 | $auth_pair and &$authn($c, $opt{'realm'}, split(/:/u, $auth_pair, 2), $params) |
| line | l | !l | condition |
|---|---|---|---|
| 301 | 0 | 0 | $defaults //= {} |
| 302 | 0 | 0 | $defaults->{'realm'} //= "Strict Zone" |
| 347 | 0 | 0 | shift() // {} |
| 355 | 0 | 0 | $c->req->headers->authorization || $c->req->env->{'X_HTTP_AUTHORIZATION'} || $c->req->env->{'HTTP_AUTHORIZATION'} || '' |
| 379 | 0 | 0 | shift() // {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 307 | 0 | 0 | 0 | shift() || $defaults->{'realm'} |
| 308 | 0 | 0 | 0 | shift() || $defaults->{'authn_fail_render'} |
| 316 | 0 | 0 | 0 | shift() || $defaults->{'authz_fail_render'} |
| 323 | 0 | 0 | 0 | !$required || $c->is_basic_authenticated |
| 335 | 0 | 0 | 0 | !$required || $c->is_basic_authorized |