Branch Coverage

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


line true false branch
23 1620 540 if (defined $level)
24 0 1620 if (defined $Current_Level) { }
144 1476 elsif (ref $level eq 'ARRAY') { }
30 72 72 if $min > $max
45 7 2 if ($k eq 'outputs') { }
2 0 elsif ($k =~ /\A(category_level)\z/) { }
47 7 0 ref $conf->{$o} eq 'ARRAY' ? :
50 0 20 unless ($k2 =~ /\A(conf|level|category_level|layout)\z/)
69 7 0 if (ref $ospec0 eq 'ARRAY') { }
75 0 7 unless $oname =~ /\A\w+(::\w+)*\z/
106 0 828 unless $ospec->{'conf'}
0 828 unless my $hooks = &{"${mod}::get_hooks";}(%{{} unless $ospec->{'conf'};})
117 0 828 if ($hooks->{'create_log_routine'})
120 0 0 if ($res->[0])
125 828 0 if ($hooks->{'create_outputter'})
128 828 0 if ($res->[0])
136 36 792 if ($ospec->{'layout'}) { }
142 0 36 unless my $lhooks = &{"${lmod}::get_hooks";}(%$lconf)
146 0 36 unless $lhooks->{'create_layouter'}
153 0 36 unless my $lres = $lhooks->{'create_layouter'}[2]->(@lhook_args)
156 0 36 unless ref $lres->[0] eq 'CODE'
164 0 468 unless (@$outputters)
173 468 0 if ($hook_args{'target_type'} eq 'package') { }
194 468 0 defined $hook_args{'level'} ? :
203 252 576 if ($ospec->{'category_level'} or $plugin_conf{'category_level'})
208 180 72 if ($ospec->{'category_level'})
214 144 108 if ($plugin_conf{'category_level'})
222 0 2196 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]
238 288 540 if (defined $min_level)
259 0 468 if ($ENV{'LOG_LOG_GER_OUTPUT_COMPOSITE_CODE'})