Branch Coverage

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


line true false branch
33 4 0 unless defined &Log::Agent::Logger::emergency
49 0 5 if (ref $_[0] eq 'CODE') { }
0 1 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 0 if (ref $_[0] eq 'CODE') { }
3 5 if (ref $_[0] eq 'CODE') { }
0 2 if (ref $_[0] eq 'CODE') { }
0 1 if (ref $_[0] eq 'CODE') { }
1 0 if (ref $_[0] eq 'CODE') { }
0 1 if (ref $_[0] eq 'CODE') { }
0 2 if (ref $_[0] eq 'CODE') { }
98 4 0 if $self->{'max_prio'} =~ /^\D+$/
101 0 4 if $self->{'min_prio'} =~ /^\D+$/
103 1 3 if defined $priority
104 1 3 if defined $caller
110 1 3 if (defined $tags)
112 0 1 if (grep {not ref $_ && $_->isa($type);} @$tags)
116 1 0 if (@$tags)
132 0 1 unless $_[0]{'tags'}
138 0 0 $_[1] =~ /^\D+$/ ? :
140 0 0 $_[1] =~ /^\D+$/ ? :
150 0 3 unless defined $channel
164 1 2 unless (@_)
184 1 2 unless (@info)
209 1 18 unless defined $channel
217 1 17 if $lvl > $self->{'max_prio'} or $lvl < $self->{'min_prio'}
223 4 13 if defined $self->{'priority'}
240 0 4 unless defined $channel
248 0 4 if $lvl > $self->{'max_prio'} or $lvl < $self->{'min_prio'}
256 0 4 unless length $msg
258 0 4 if defined $self->{'priority'}
278 0 4 if defined $ptag