Branch Coverage

blib/lib/Log/Dispatch.pm
Criterion Covered Total %
branch 29 42 69.0


line true false branch
25 97 75 @_ > 1 ? :
57 6 93 if $p{'callbacks'}
59 62 37 if (my $outputs = $p{'outputs'})
60 1 61 if (ref $outputs->[1] eq 'HASH') { }
79 1 62 unless ref $arr eq 'ARRAY'
94 0 1 unless $self->{'callbacks'}
95 0 1 unless $self->{'outputs'}
105 2 62 substr($class, 0, 1) eq '+' ? :
120 0 0 if (exists $self->{'outputs'}{$object->name} and $^W)
155 0 47 unless defined $level_num
167 91 128 unless $self->_would_log($level_num)
180 3 127 if ref $p{'message'} eq 'CODE'
183 15 115 if $self->{'callbacks'}
203 2 0 if $self->would_log($p{'level'})
221 0 2 if exists $p{'carp_level'}
231 0 0 if $self->{'callbacks'}
241 0 0 if (exists $self->{'outputs'}{$name}) { }
0 0 elsif ($^W) { }
254 1 16 unless exists $self->{'outputs'}{$name}
264 1 9 unless defined $level_num
274 135 93 if $_->_should_log($level_num)