Branch Coverage

blib/lib/Log/Contextual.pm
Criterion Covered Total %
branch 30 52 57.6


line true false branch
13 0 0 unless ref $coderef
15 0 0 unless $cv->isa("B::CV")
18 0 0 if $cv->GV->isa("B::SPECIAL")
45 28 1 unless $_[1]
69 6 28 unless @args
74 54 29 if ($arg =~ /\A[-:](.*)/s) { }
76 14 40 if ($import_arguments{$name}) { }
6 34 elsif ($name eq 'default') { }
34 0 elsif (defined $allowed_tags{$name}) { }
81 0 6 ref $args[0] ? :
85 0 34 ref $args[0] ? :
94 0 29 unless my $export_config = $exports{$arg}
97 0 29 ref $args[0] ? :
107 7 0 $tag->{'tag'} eq 'dlog' ? :
27 7 $tag->{'tag'} eq 'log' ? :
147 0 781 defined $prefix ? :
0 781 defined $suffix ? :
0 781 defined $as ? :
157 753 28 defined $level ? :
160 0 781 if (defined &$full_target)
162 0 0 if _stash_name(\&Log::Contextual::full_target) eq __PACKAGE__
171 0 17 unless $router->does("Log::Contextual::Role::Router::SetLogger")
179 0 10 unless $router->does("Log::Contextual::Role::Router::WithLogger")
187 0 1 unless $router->does("Log::Contextual::Role::Router::HasLogger")
264 18 7 @_ ? :
284 6 0 @_ ? :