Branch Coverage

blib/lib/Catalyst/Authentication/Realm.pm
Criterion Covered Total %
branch 13 48 27.0


line true false branch
21 7 0 unless (exists $self->config->{'use_session'})
22 7 0 if (exists $app->config->{'Plugin::Authentication'}{'use_session'}) { }
29 0 7 if $app->debug
33 0 7 unless (exists $config->{'store'}{'class'})
35 0 0 unless (exists $config->{'class'})
75 0 0 unless /^Can't locate/
84 0 0 unless /^Can't locate/
96 0 0 unless /^Can't locate/
104 0 0 unless /^Can't locate/
113 0 7 unless ($storeclass->can("find_user"))
117 0 0 if exists $info->{'rest'}
124 7 0 if ($storeclass->can('new')) { }
131 7 0 if ($credentialclass->can('new')) { }
147 1 20 if (not $res) { }
0 40 elsif ($self->config->{'auto_update_user'} and $self->store->can('auto_update_user')) { }
148 0 1 if ($self->config->{'auto_create_user'} and $self->store->can("auto_create_user"))
162 13 5 if (ref $user) { }
175 0 0 unless $c->can("session") and $self->config->{'use_session'} and $c->session_is_valid
185 0 0 unless defined $frozen_user
189 0 0 if ($user) { }
196 0 0 unless $self->failed_user_restore($c)
216 0 0 if ($c->can("session") and $self->config->{'use_session'} and $user->supports("session"))
226 0 0 if ($self->store->can('for_session')) { }
238 0 0 if ($c->can("session") and $self->config->{'use_session'} and $c->session_is_valid)