Branch Coverage

blib/lib/Catalyst/Plugin/Authentication/Simple.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
47 0 0 if $c->request->{'user'}
49 0 0 if ($password_hash =~ /sha/i) { }
0 0 elsif ($password_hash =~ /md5/i) { }
58 0 0 unless ($c->config->{'authentication'}{'users'})
60 0 0 unless $user_file
61 0 0 unless open USERS, $user_file
70 0 0 if ($f_user eq $user and $f_pass eq $password)
100 0 0 if ($roles)
101 0 0 if $#$roles < 0
103 0 0 if ($c->process_roles($roles)) { }
104 0 0 if $c->debug
107 0 0 if $c->debug
129 0 0 ref $_[0] eq 'ARRAY' ? :
130 0 0 if ($_[0])
133 0 0 unless grep(($_ eq $role), @{$$c{'roles'};})
135 0 0 unless @roles
136 0 0 if ($c->process_permission(\@roles)) { }
157 0 0 unless $c->login($user, $password)
201 0 0 ref $conf eq 'ARRAY' ? :
223 0 0 unless $$c{'user_roles'}{$role}