Branch Coverage

blib/lib/Auth/Kokolores/Plugin/CheckPassword.pm
Criterion Covered Total %
branch 11 28 39.2


line true false branch
15 0 6 if (defined $self->method_from)
33 0 0 if (defined $self->cost_from)
43 0 0 if (defined $self->salt_from)
60 6 0 if (grep {$method eq $_;} @{$self->supported_methods;})
82 0 6 if ($@)
103 0 6 if (not defined $method) { }
6 0 elsif ($self->is_supported_method($method)) { }
120 1 1 if ($r->password eq $pw)
135 1 1 if ($self->pbkdf2->validate($hash, $r->password))
146 1 1 if (&Crypt::Eksblowfish::Bcrypt::bcrypt($pw, $hash) eq $hash)
163 0 0 unless (defined $params{$param})
173 0 0 if ($hashlen == 31 and $pw eq $bcrypt->b64digest) { }
0 0 elsif ($hashlen == 46 and $pw eq $bcrypt->hexdigest) { }
0 0 elsif ($hashlen == 23 and $pw eq $bcrypt->digest) { }