Branch Coverage

blib/lib/Log/Any/Adapter/DERIV.pm
Criterion Covered Total %
branch 33 40 82.5


line true false branch
167 0 0 if ref $format eq "CODE"
201 110 74 if ($self->{'json_log_file'})
202 0 110 unless $self->{'json_fh'} = path($self->{'json_log_file'})->opena_utf8
209 50 24 unless ($self->{'json_log_file'} or $self->{'stderr'})
215 102 266 if ($self->{$name})
216 102 0 if ref $self->{$name} ne "HASH"
219 42 24 _in_container() ? :
66 36 if not $self->{$name}{'format'} or $self->{$name}{'format'} ne "json" and $self->{$name}{'format'} ne "text"
253 43 59 unless grep {/utf/i;} &PerlIO::get_layers($fh, "output", 1)
299 18 0 $data->{'stack'}[-1] ? :
308 11 7 unless $opts->{'colour'}
310 0 7 unless $SEVERITY_COLOUR{$data->{'severity'}}
346 62 28 if ($self->{'json_fh'})
353 138 42 unless $self->{$stdfile}
357 22 20 $self->{$stdfile}{'format'} eq 'json' ? :
412 79 12 if numeric_level($data->{'severity'}) <= numeric_level("warn")
415 9 3 if $self->{'log_level'} >= numeric_level("debug")
446 29 189 if ($frame->{'package'} eq 'Future' or $frame->{'package'} eq 'Future::PP') { }
447 23 6 if $previous_is_future
550 120 0 if $result