Authentication/Credential/NoPassword.pm

filter: Statementstmt 52.9% 9 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 100% 1 / 1 totaltotal 50.0% 12 / 24 CC 2 SCAR 11.6
CC
2
Cov
47%
__ANON__
6.0
authenticate
2.0
BEGIN
1.0
CRAP 3.2
« Authentication/User/Hash.pm ↑ Summary Authentication/User.pm »
1 package Catalyst::Authentication::Credential::NoPassword;
2  
3 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 has 'realm' => (is => 'ro', required => 1);
7  
8 0 ▶around BUILDARGS => sub {
Subroutine __ANON__: not called CC=2 SCAR=17.9
9 0 my $orig = shift;
10 0 my $class = shift;
11  
12 0 ▶ if ( @_ == 3 ) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_ == 3) { } 0 0 0
13 0 my ($config, $app, $realm) = @_;
14 0 return $class->$orig( realm => $realm );
15 }
16 else {
17 0 return $class->$orig(@_);
18 }
19 1 };
20  
21 0 ▶sub authenticate {
Subroutine authenticate: not called CC=1 SCAR=6.9
Pod documented
22 0 my ($self, $c, $realm, $authinfo) = @_;
23 0 $self->realm->find_user($authinfo, $c);
24 }
25  
26 1 1;
27  
28 __END__
« Authentication/User/Hash.pm ↑ Summary Authentication/User.pm »