LogDispatch/ConfigMaker.pm

filter: Statementstmt 93.3% 14 / 15 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 0.0% 0 / 4 totaltotal 75.0% 21 / 28 CC 2 SCAR 3.3
CC
2
Cov
88%
get_attrs
2.1
needs_reload
2.0
BEGIN
1.0
CRAP 1.4
« LogDispatch/Levels.pm ↑ Summary LogDispatch/Logger.pm »
1 package # Hide from Pause
2 MooseX::LogDispatch::ConfigMaker;
3  
4  
5 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 5 ▶use base qw/Log::Dispatch::Configurator/;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 4 ▶sub new { bless { default => $_[1] }, $_[0] }
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
11  
12 4 ▶sub get_attrs_global {
Subroutine get_attrs_global: called CC=1 SCAR=0.0
Pod undocumented
13 4 return {format => undef, dispatchers => ['default' ] }
14 }
15  
16 4 ▶sub get_attrs {
Subroutine get_attrs: called CC=2 SCAR=7.2
Pod undocumented
17 4 my ($self, $name) = @_;
18 4 ▶ $self->{$name} || die "invalid dispatcher name: $name";
Branch: 1 branch
BranchTrueFalseTotal
$self->{$name} or die "invalid dispatcher name: $name" 4 0 4
19 }
20  
21 0 ▶sub needs_reload { 0 }
Subroutine needs_reload: not called CC=1 SCAR=6.9
Pod undocumented
22  
23 5 1;
« LogDispatch/Levels.pm ↑ Summary LogDispatch/Logger.pm »