Branch Coverage

blib/lib/Log/ger/Output/Composite.pm
Criterion Covered Total %
branch 38 60 63.3


line true false branch
17 270 90 if (defined $level)
18 0 270 if (defined $Current_Level) { }
24 246 elsif (ref $level eq 'ARRAY') { }
24 12 12 if $min > $max
39 7 2 if ($k eq 'outputs') { }
2 0 elsif ($k =~ /\A(category_level)\z/) { }
41 7 0 ref $conf->{$o} eq 'ARRAY' ? :
44 0 20 unless ($k2 =~ /\A(conf|level|category_level|layout)\z/)
63 7 0 if (ref $ospec0 eq 'ARRAY') { }
69 0 7 unless $oname =~ /\A\w+(::\w+)*\z/
101 0 138 unless $ospec->{'conf'}
0 138 unless my $hooks = &{"${mod}::get_hooks";}(%{{} unless $ospec->{'conf'};})
110 0 138 if ($hooks->{'create_logml_routine'})
113 0 0 if ($res->[0])
120 138 0 if ($hooks->{'create_log_routine'})
123 138 0 if ($res->[0])
133 6 132 if ($ospec->{'layout'}) { }
139 0 6 unless my $lhooks = &{"${lmod}::get_hooks";}(%$lconf)
143 0 6 unless $lhooks->{'create_layouter'}
150 0 6 unless my $lres = $lhooks->{'create_layouter'}[2]->(@lhook_args)
153 0 6 unless ref $lres->[0] eq 'CODE'
161 0 78 unless (@$loggers)
170 78 0 if ($hook_args{'target'} eq 'package') { }
198 42 96 if ($ospec->{'category_level'} or $conf{'category_level'})
203 30 12 if ($ospec->{'category_level'})
209 24 18 if ($conf{'category_level'})
217 0 366 unless length $Log::ger::Output::Composite::b->[0] <=> length $Log::ger::Output::Composite::a->[0] or $Log::ger::Output::Composite::a->[0] cmp $Log::ger::Output::Composite::b->[0]
233 48 90 if (defined $min_level)
242 0 138 if ($logger_is_ml->[$i]) { }
253 0 78 if ($ENV{'LOG_LOG_GER_OUTPUT_COMPOSITE_CODE'})