blib/lib/Tapper/Reports/Web/Controller/Tapper/User.pm

filter: Statementstmt 60.5% 23 / 38 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 70.0% 7 / 10 Podpod 100% 2 / 2 totaltotal 59.2% 32 / 54 CC 3 SCAR 13.7
CC
3
Cov
55%
login
12.0
index
2.0
logout
2.0
CRAP 3.9
« blib/lib/Tapper/Reports/Web/Util/Filter/Testplan.pm ↑ Summary blib/lib/Tapper/Reports/Web/Util.pm »
1 package Tapper::Reports::Web::Controller::Tapper::User;
2 13 our $AUTHORITY = 'cpan:TAPPER';
3 13 $Tapper::Reports::Web::Controller::Tapper::User::VERSION = '5.0.17';
4 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 13 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 13 ▶use parent 'Tapper::Reports::Web::Controller::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9  
10 0 ▶sub index :Path :Args(0)
Subroutine index: not called CC=1 SCAR=6.9
11 {
12 0 my ( $self, $c ) = @_;
13 13 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15  
16  
17 0 ▶sub login :Local :Args(0)
Subroutine login: not called CC=3 SCAR=24.8
Pod documented
18 {
19 0 my ($self, $c) = @_;
20 0 $c->stash->{'template'} = 'tapper/user/login.mas';
21 0 ▶ if ( exists($c->req->params->{'username'})) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $c->req->params->{"username"}) 0 0 0
22 0 ▶ if ( $c->authenticate({ username => $c->req->params->{'username'},
Branch: 1 branch
BranchTrueFalseTotal
if ($c->authenticate({'username', $c->req->params->{'username'}, 'password', $c->req->params->{'password'}})) { } 0 0 0
23 password => $c->req->params->{'password'},
24 })) {
25 0 $c->response->redirect('/tapper/start');
26 0 $c->detach();
27 0 return;
28 } else {
29 0 $c->stash->{message} = 'Invalid login';
30 }
31 }
32 13 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
33  
34  
35 0 ▶sub logout :Local :Args(0) {
Subroutine logout: not called CC=1 SCAR=6.9
Pod documented
36 0 my ($self, $c) = @_;
37 0 $c->stash->{template} = 'tapper/user/logout.mas';
38 0 $c->logout();
39 0 $c->response->redirect('/tapper/start');
40 0 $c->detach();
41 0 return;
42 13 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
43  
44  
45  
46  
47 13 1;
48  
49 __END__
« blib/lib/Tapper/Reports/Web/Util/Filter/Testplan.pm ↑ Summary blib/lib/Tapper/Reports/Web/Util.pm »