Branch Coverage

blib/lib/Log/Any/Adapter/JSON.pm
Criterion Covered Total %
branch 24 32 75.0


line true false branch
27 0 9 if ($ref and $ref ne 'GLOB') { }
9 0 elsif ($ref) { }
52 0 24 if Log::Any::Adapter::Util::numeric_level($level) > $self->{'log_level'}
64 2 22 unless $string
66 2 20 $self->{'localtime'} ? :
80 8 14 if (not $self->{'without_formatting'} and my $num_tokens = () = $string =~ /%s|%d/g) { }
83 2 6 if (@vals < $num_tokens)
84 0 2 $num_tokens == 1 ? :
100 10 8 if (ref $item eq 'HASH') { }
2 6 elsif (ref $item eq 'ARRAY') { }
102 2 8 if ($item->{'context'})
106 8 2 if (not $seen_href) { }
108 4 4 if ($key =~ /^(?:time|level|category|message)$/)
145 0 9 if ($self->{'log_level'} and $self->{'log_level'} =~ /\D/)
148 0 0 unless (defined $numeric_level)
155 0 9 if (not defined $self->{'log_level'})