Branch Coverage

blib/lib/Catalyst/Plugin/Authentication/Credential/Password.pm
Criterion Covered Total %
branch 16 32 50.0


line true false branch
18 0 7 unless (defined $user or $user = $c->request->param('login') || $c->request->param('user') || $c->request->param('username'))
25 0 0 if $c->debug
31 0 7 unless (defined $password or $password = $c->request->param('password') || $c->request->param('passwd') || $c->request->param('pass'))
38 0 0 if $c->debug
43 7 0 unless (builtin::blessed($user) and $user->isa("Catalyst::Authentication::User"))
46 7 0 if (my $user_obj = $c->get_user($user, $password, @rest)) { }
50 0 0 if $c->debug
56 5 1 if ($c->_check_password($user, $password)) { }
58 0 5 if $c->debug
63 0 1 if $c->debug
75 1 6 if ($user->supports('password', 'clear')) { }
2 4 elsif ($user->supports('password', 'crypted')) { }
3 1 elsif ($user->supports('password', 'hashed')) { }
0 1 elsif ($user->supports('password', 'salted_hash')) { }
0 1 elsif ($user->supports('password', 'self_check')) { }
101 0 0 $user->can('password_salt_len') ? :