OrePAN2/Role/HasLogger.pm

filter: Statementstmt 77.7% 14 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 69.2% 18 / 26 CC 2 SCAR 9.8
CC
2
Cov
70%
log
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« OrePAN2/Index.pm ↑ Summary OrePAN2/Repository.pm »
1 package OrePAN2::Role::HasLogger;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 6 ▶use OrePAN2::Logger;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 6 ▶use Role::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 6 our $VERSION = '2.0.0';
11  
12 0 ▶sub log { ## no critic
Subroutine log: not called CC=2 SCAR=17.9
Pod undocumented
13 0 my ($self) = @_;
14  
15 return $self->{log}
16 0 ▶ if $self->{log};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"log"} 0 0 0
17  
18 0 $self->{log} = OrePAN2::Logger->new;
19  
20 0 return $self->{log};
21 }
22  
23 6 1;
« OrePAN2/Index.pm ↑ Summary OrePAN2/Repository.pm »