Branch Coverage

blib/lib/Log/Dispatch/Config.pm
Criterion Covered Total %
branch 26 34 76.4


line true false branch
19 25 41 if @_
25 0 12 unless $config
28 8 4 unless (UNIVERSAL::isa($config, 'Log::Dispatch::Configurator'))
58 0 18 unless (defined $instance)
63 6 12 if (UNIVERSAL::isa($instance, 'Log::Dispatch::Config')) { }
65 2 4 if ($instance->needs_reload)
87 2 0 $$instance{'config'}->should_watch ? :
106 0 11 if defined $callback
128 0 17 unless my $dispclass = $$var{'class'}
132 0 17 if $@ and not $@ =~ /locate/
134 15 2 if (exists $$var{'format'})
142 11 15 unless defined $format
153 4 2 if ($needs_caller)
165 1 24 if ($1 and $2) { }
5 19 elsif ($1) { }
19 0 elsif ($3) { }
185 1 0 if ($Log::Dispatch::Config::HasTimePiece) { }