Branch Coverage

blib/lib/Mojo/Log/Role/AttachLogger.pm
Criterion Covered Total %
branch 13 52 25.0


line true false branch
17 0 4 unless defined $logger
19 3 1 if (ref $opt) { }
29 3 1 if (&Scalar::Util::blessed($logger)) { }
1 0 elsif ($logger eq 'Log::Any') { }
0 0 elsif ($logger eq 'Log::Log4perl') { }
0 0 elsif ($logger eq 'Log::Contextual' or "$logger"->isa('Log::Contextual')) { }
30 0 3 if ($logger->isa('Log::Any::Proxy')) { }
0 3 elsif ($logger->isa('Log::Dispatch')) { }
0 3 elsif ($logger->isa('Log::Dispatchouli') or $logger->isa('Log::Dispatchouli::Proxy')) { }
3 0 elsif ($logger->isa('Mojo::Log')) { }
33 0 0 @msg > 1 ? :
34 0 0 if $prepend
40 0 0 @msg > 1 ? :
41 0 0 if $prepend
42 0 0 if $level eq 'fatal'
43 0 0 if $level eq 'trace'
49 0 0 @msg > 1 ? :
50 0 0 if $prepend
51 0 0 if $level eq 'trace' or $level eq 'debug'
55 0 0 if $level eq 'fatal' and $logger->get_muted
71 6 6 @msg > 1 ? :
72 0 12 if $prepend
80 0 0 @msg > 1 ? :
81 0 0 if $prepend
91 0 0 @msg > 1 ? :
92 0 0 if $prepend