Branch Coverage

blib/lib/Log/ger/Output/Composite.pm
Criterion Covered Total %
branch 36 56 64.2


line true false branch
21 14 0 unless $ENV{'LOG_GER_OUTPUT_COMPOSITE_DEBUG'}
28 1620 540 if (defined $level)
29 0 1620 if (defined $Current_Level) { }
144 1476 elsif (ref $level eq 'ARRAY') { }
35 72 72 if $min > $max
56 7 2 if ($k eq 'outputs') { }
2 0 elsif ($k =~ /\A(category_level)\z/) { }
58 7 0 ref $conf->{$o} eq 'ARRAY' ? :
61 0 20 unless ($k2 =~ /\A(conf|level|category_level|layout)\z/)
80 7 0 if (ref $ospec0 eq 'ARRAY') { }
86 0 7 unless $oname =~ /\A\w+(::\w+)*\z/
135 0 828 if ($hooks->{'create_log_routine'})
138 0 0 if ($res->[0])
143 828 0 if ($hooks->{'create_outputter'})
146 828 0 if ($res->[0])
154 36 792 if ($ospec->{'layout'}) { }
169 0 36 unless $lhooks->{'create_layouter'}
176 0 36 unless my $lres = $lhooks->{'create_layouter'}[2]->(@lhook_args)
179 0 36 unless ref $lres->[0] eq 'CODE'
187 0 468 unless (@$outputters)
196 468 0 if ($hook_args{'target_type'} eq 'package') { }
217 468 0 defined $hook_args{'level'} ? :
226 252 576 if ($ospec->{'category_level'} or $plugin_conf{'category_level'})
231 180 72 if ($ospec->{'category_level'})
237 144 108 if ($plugin_conf{'category_level'})
245 0 2052 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]
261 288 540 if (defined $min_level)
282 0 468 if ($ENV{'LOG_LOG_GER_OUTPUT_COMPOSITE_CODE'})