Branch Coverage

blib/lib/Catalyst/Plugin/RapidApp/AuthCore/Controller/Auth.pm
Criterion Covered Total %
branch 17 54 31.4


line true false branch
22 0 5 if $c->req->method eq 'GET'
27 0 5 $c->session_is_valid && $c->session->{'RapidApp_username'} ? :
30 5 0 if $c->req->params->{'username'}
32 5 0 unless $haveSessionForUser
40 0 0 unless my $c = shift()
44 0 0 if (my $referer = $c->req->referer)
48 0 0 if ($uri->host_port eq $ruri->host_port)
50 0 0 if (my $fragment = $c->req->params->{'_fragment'})
68 0 0 if ($to and $to ne '/' and $to ne $c->mount_url . '/')
69 0 0 if ($c->session and $c->session_is_valid and $c->user_exists) { }
88 0 0 if (my $to = $self->_parse_to_referer($c))
122 0 0 if ($href =~ m[^/auth/login/] and $c->session->{'RapidApp_username'})
129 0 8 unless $href =~ m[^/]
142 0 0 $self->do_login($c, $user, $pass) ? :
154 8 5 if ($c->session and $c->session_is_valid and $c->user_exists) { }
159 4 1 if ($c->is_ra_ajax_req) { }
178 0 0 if (my $fragment = $qs{'_fragment'})
194 5 0 if ($c->authenticate({'username', $user, 'password', $pass})) { }
202 0 5 if $c->debug
213 0 5 if ($to and $to ne '')
221 0 0 if $c->debug
234 0 5 unless $user and $user ne ''
238 5 0 if $self->do_login($c, $user, $pass)
255 0 0 $t && $t ne '/' && $t ne '' ? :
280 0 1 unless my $c = shift()
288 1 0 if $ver
291 0 1 if $c->session and $c->session->{'login_error'}