blib/lib/Lemonldap/NG/Portal/Lib/_tokenRule.pm

filter: Statementstmt 77.7% 14 / 18 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 1 totaltotal 69.2% 18 / 26 CC 2 SCAR 5.6
CC
2
Cov
75%
__ANON__
2.3
__ANON__
2.0
init
2.0
CRAP 1.8
« blib/lib/Lemonldap/NG/Portal/Auth/Proxy.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm »
1 package Lemonldap::NG::Portal::Lib::_tokenRule;
2  
3 329 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 329 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 329 our $VERSION = '2.0.12';
7  
8 has ottRule => (
9 is => 'rw',
10 lazy => 1,
11 111 ▶ default => sub {
Subroutine __ANON__: called CC=2 SCAR=8.1
12 111 my $rule = $_[0]->conf->{requireToken};
13 111 my $hd = $_[0]->p->HANDLER;
14 111 $rule = $hd->buildSub( $hd->substitute($rule) );
15 111 ▶ unless ($rule) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($rule) 0 111 111
16 0 $_[0]->logger->error(
17 'Unable to compile "requireToken" rule => Forcing token');
18 0 ▶ $rule = sub { 1 };
Subroutine __ANON__: not called CC=1 SCAR=6.9
19 }
20 111 return $rule;
21 }
22 329 );
23  
24 0 ▶sub init {
Subroutine init: not called CC=1 SCAR=6.9
Pod undocumented
25 0 return 1;
26 }
27  
28 329 1;
« blib/lib/Lemonldap/NG/Portal/Auth/Proxy.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/Main/SecondFactor.pm »