Branch Coverage

blib/lib/Catalyst/Plugin/Authentication/CDBI.pm
Criterion Covered Total %
branch 0 38 0.0


line true false branch
124 0 0 if $c->request->{'user'}
130 0 0 if ($password_hash =~ /sha/i) { }
0 0 elsif ($password_hash =~ /md5/i) { }
138 0 0 if (my $user_obj = $user_class->search({$user_field, $user, $password_field, $password})->next)
172 0 0 if ($roles)
173 0 0 if $#$roles < 0
175 0 0 if ($c->process_roles($roles)) { }
176 0 0 if $c->debug
179 0 0 if $c->debug
201 0 0 ref $_[0] eq 'ARRAY' ? :
202 0 0 if ($_[0])
205 0 0 unless grep(($_ eq $role), @{$$c{'roles'};})
207 0 0 unless @roles
208 0 0 if ($c->process_permission(\@roles)) { }
229 0 0 unless $c->login($user, $password)
276 0 0 ref $conf eq 'ARRAY' ? :
306 0 0 if (my $user = $user_class->search({$user_field, $c->request->{'user'}})->first) { }
310 0 0 if (my $role = $role_class->search({$role_field, $role})->first) { }
313 0 0 unless $user_role_class->search({$user_role_user_field, $user->id, $user_role_role_field, $role->id})