Branch Coverage

blib/lib/Log/Dispatch/Output.pm
Criterion Covered Total %
branch 12 20 60.0


line true false branch
43 0 3 unless $self->_should_log($level_num)
47 0 3 if $self->{'callbacks'}
58 1 131 unless $self->_should_log($level_num)
62 71 60 if $self->{'callbacks'}
111 16 91 exists $p{'max_level'} ? :
114 2 105 if $p{'callbacks'}
116 57 50 if ($p{'newline'})
160 0 0 unless (defined $level)
165 0 0 unless ($canonical_level = 'Log::Dispatch'->level_is_valid($level))
169 0 0 unless $level =~ /\A[0-7]+\z/