blib/lib/Lemonldap/NG/Common/Module.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
auditLog
2.0
error
2.0
BEGIN
2.0
CRAP 2.0
1 package Lemonldap::NG::Common::Module;
2  
3 use strict;
4 use Mouse;
5  
6 our $VERSION = '2.19.0';
7  
8 # Object that provides loggers and error methods (typically PSGI object)
9 has p => ( is => 'rw', weak_ref => 1 );
10  
11 # Lemonldap::NG configuration hash ref
12 has conf => ( is => 'rw', weak_ref => 1 );
13  
14 has logger => ( is => 'rw', lazy => 1, default => sub { $_[0]->{p}->logger } );
15 has userLogger =>
16 ( is => 'rw', lazy => 1, default => sub { $_[0]->{p}->userLogger } );
17  
18 sub auditLog {
19 my $self = shift;
20 return $self->p->auditLog(@_);
21 }
22  
23 sub error {
24 my $self = shift;
25 return $self->p->error(@_);
26 }
27  
28 1;