Condition Coverage

blib/lib/Mojolicious/Plugin/BasicAuthPlus.pm
Criterion Covered Total %
condition 14 19 73.6


and 3 conditions

line !l l&&!r l&&r condition
37 16 3 5 $callback and &$callback(split(/:/, $auth, 2))
46 6 0 5 $$params{'username'} and $$params{'password'}
100 0 0 5 $username eq $$params{'username'} and 'Authen::Simple::Password'->check($password, $$params{'password'})

or 2 conditions

line l !l condition
19 22 3 $self->req->url->to_abs->userinfo || ''
41 5 14 $username || ''

or 3 conditions

line l !l&&r !l&&!r condition
27 22 0 3 $auth or $callback
1 0 2 $auth or $callback or $params