Branch Coverage

blib/lib/Dancer2/Plugin/Auth/YARBAC.pm
Criterion Covered Total %
branch 0 32 0.0


line true false branch
20 0 0 if ($app->session->read('logged_in_user') and $app->session->read('logged_in_user_realm'))
68 0 0 if ($auth->{'success'} and $auth->{'realm'})
76 0 0 $return_url ? :
96 0 0 if (not $opts->{'realm'}) { }
102 0 0 if $auth
137 0 0 if ($strength->{'error'})
652 0 0 if (not $coderef or ref $coderef ne 'CODE')
657 0 0 unless ($app->session->read('logged_in_user') and $app->session->read('logged_in_user_realm'))
659 0 0 if (defined $hook and $dsl->request->path_info =~ /$conf->{'no_login_required'}/i)
666 0 0 unless ($dsl->request->path_info =~ /^($conf->{'login_denied'}|$conf->{'after_login'})$/i)
687 0 0 unless defined $params->{'username'} and defined $params->{'password'} and defined $opts->{'realm'}
693 0 0 if ($provider->authenticate_user($params, $opts))
708 0 0 unless (defined $opts->{'realm'})
721 0 0 unless (defined $params->{'username'})
739 0 0 if exists $$provider{$opts->{'realm'}}
744 0 0 unless ($class =~ /::/)