Branch Coverage

blib/lib/Mojo/Log/Role/AttachLogger.pm
Criterion Covered Total %
branch 13 50 26.0


line true false branch
17 0 4 unless defined $logger
19 3 1 if (ref $opt) { }
28 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')) { }
29 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')) { }
32 0 0 @msg > 1 ? :
33 0 0 if $prepend
39 0 0 @msg > 1 ? :
40 0 0 if $prepend
41 0 0 if $level eq 'fatal'
47 0 0 @msg > 1 ? :
48 0 0 if $prepend
49 0 0 if $level eq 'debug'
53 0 0 if $level eq 'fatal' and $logger->get_muted
69 5 5 @msg > 1 ? :
70 0 10 if $prepend
78 0 0 @msg > 1 ? :
79 0 0 if $prepend
89 0 0 @msg > 1 ? :
90 0 0 if $prepend