blib/lib/Lemonldap/NG/Portal/UserDB/Proxy.pm

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 95.8% 23 / 24 CC 2 SCAR 3.4
CC
2
Cov
100%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Lemonldap/NG/Portal/UserDB/Remote.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/Lib/OIDCPlugin.pm »
1 package Lemonldap::NG::Portal::UserDB::Proxy;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use Lemonldap::NG::Portal::Main::Constants 'PE_OK';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 extends 'Lemonldap::NG::Portal::Main::UserDB';
8  
9 4 our $VERSION = '2.19.0';
10  
11 # INITIALIZATION
12  
13 4 ▶sub init {
Subroutine init: called CC=2 SCAR=6.9
Pod undocumented
14 4 my ($self) = @_;
15 4 ▶ if ( $self->conf->{proxyUseSoap} ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->conf->{'proxyUseSoap'}) { } 1 3 4
16 1 extends 'Lemonldap::NG::Portal::Main::UserDB',
17 'Lemonldap::NG::Portal::Lib::SOAPProxy';
18 }
19 else {
20 3 extends 'Lemonldap::NG::Portal::Main::UserDB',
21 'Lemonldap::NG::Portal::Lib::RESTProxy';
22 }
23 4 return $self->SUPER::init();
24 }
25  
26 4 1;
« blib/lib/Lemonldap/NG/Portal/UserDB/Remote.pm ↑ Summary blib/lib/Lemonldap/NG/Portal/Lib/OIDCPlugin.pm »