blib/lib/Mojolicious/Plugin/BasicAuthPlus.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 14 | 19 | 73.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
37 | 15 | 3 | 5 | $callback and &$callback(split(/:/, $auth, 2)) |
46 | 6 | 0 | 4 | $$params{'username'} and $$params{'password'} |
99 | 0 | 0 | 4 | $username eq $$params{'username'} and 'Authen::Simple::Password'->check($password, $$params{'password'}) |
line | l | !l | condition |
---|---|---|---|
19 | 21 | 3 | $self->req->url->to_abs->userinfo || '' |
41 | 5 | 13 | $username || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
27 | 21 | 0 | 3 | $auth or $callback |
1 | 0 | 2 | $auth or $callback or $params |