Condition Coverage

blib/lib/Catalyst/Plugin/Authentication.pm
Criterion Covered Total %
condition 13 35 37.1


and 3 conditions

line !l l&&!r l&&r condition
98 20 0 0 $c->can("session") and $c->config->{'Plugin::Authentication'}{'use_session'}
0 0 0 $c->can("session") and $c->config->{'Plugin::Authentication'}{'use_session'} and $c->session_is_valid
153 17 0 0 $c->can("session") and $c->config->{'Plugin::Authentication'}{'use_session'}
0 0 0 $c->can("session") and $c->config->{'Plugin::Authentication'}{'use_session'} and $c->session_is_valid
0 0 0 $c->can("session") and $c->config->{'Plugin::Authentication'}{'use_session'} and $c->session_is_valid and exists $c->session->{'__user_realm'}
261 5 6 3 ref $realmshash->{$realm} eq "HASH" and exists $realmshash->{$realm}{'credential'} || exists $realmshash->{$realm}{'class'}
276 1 0 5 exists $cfg->{'default_realm'} and not $app->get_auth_realm("default")
299 0 0 0 exists $cfg->{'store'} and not exists $cfg->{'stores'}{'default'}

or 2 conditions

line l !l condition
137 7 0 $realmname ||= "default"

or 3 conditions

line l !l&&r !l&&!r condition
54 20 0 0 defined $c->_user || defined $c->find_realm_for_persisted_user
165 24 0 0 $c->auth_realms->{$realmname} || 'Catalyst::Exception'->throw("Could not find authentication realm '${realmname}'")
261 7 1 1 exists $realmshash->{$realm}{'credential'} || exists $realmshash->{$realm}{'class'}