Branch Coverage

blib/lib/Log/Agent/Logger.pm
Criterion Covered Total %
branch 39 68 57.3


line true false branch
41 4 0 unless defined &emergency
57 1 1 if (ref $_[0] eq 'CODE') { }
3 3 if (ref $_[0] eq 'CODE') { }
0 1 if (ref $_[0] eq 'CODE') { }
0 0 if (ref $_[0] eq 'CODE') { }
0 1 if (ref $_[0] eq 'CODE') { }
0 3 if (ref $_[0] eq 'CODE') { }
0 1 if (ref $_[0] eq 'CODE') { }
0 2 if (ref $_[0] eq 'CODE') { }
0 4 if (ref $_[0] eq 'CODE') { }
0 3 if (ref $_[0] eq 'CODE') { }
0 0 if (ref $_[0] eq 'CODE') { }
0 0 if (ref $_[0] eq 'CODE') { }
105 4 0 if $$self{'max_prio'} =~ /^\D+$/
108 0 4 if $$self{'min_prio'} =~ /^\D+$/
111 1 3 if defined $priority
112 1 3 if defined $caller
118 1 3 if (defined $tags)
120 0 1 if (grep {not ref $_ && $_->isa($type);} @$tags)
124 1 0 if (@$tags)
140 0 1 unless $_[0]{'tags'}
146 0 0 $_[1] =~ /^\D+$/ ? :
148 0 0 $_[1] =~ /^\D+$/ ? :
158 0 3 unless defined $channel
172 1 2 unless (@_)
192 1 2 unless (@info)
217 1 18 unless defined $channel
225 1 17 if $lvl > $$self{'max_prio'} or $lvl < $$self{'min_prio'}
231 4 13 if defined $$self{'priority'}
248 0 4 unless defined $channel
256 0 4 if $lvl > $$self{'max_prio'} or $lvl < $$self{'min_prio'}
264 0 4 unless length $msg
266 0 4 if defined $$self{'priority'}
286 0 4 if defined $ptag