Branch Coverage

blib/lib/Log/Any/Adapter/DERIV.pm
Criterion Covered Total %
branch 35 44 79.5


line true false branch
165 0 0 if ref $format eq "CODE"
199 106 74 if ($self->{'json_log_file'})
200 0 106 unless $self->{'json_fh'} = path($self->{'json_log_file'})->opena_utf8
207 50 24 unless ($self->{'json_log_file'} or $self->{'stderr'})
213 102 258 if ($self->{$name})
214 102 0 if ref $self->{$name} ne "HASH"
217 42 24 _in_container() ? :
66 36 if not $self->{$name}{'format'} or $self->{$name}{'format'} ne "json" and $self->{$name}{'format'} ne "text"
251 43 59 unless grep {/utf/i;} &PerlIO::get_layers($fh, "output", 1)
297 18 0 $data->{'stack'}[-1] ? :
306 11 7 unless $opts->{'colour'}
308 0 7 unless $SEVERITY_COLOUR{$data->{'severity'}}
343 81 0 if ($data->{'message'})
352 0 81 if ($self->{'context'} and ref $self->{'context'} eq "HASH")
362 53 28 if ($self->{'json_fh'})
369 120 42 unless $self->{$stdfile}
373 22 20 $self->{$stdfile}{'format'} eq 'json' ? :
428 69 12 if numeric_level($data->{'severity'}) <= numeric_level("warn")
431 9 3 if $self->{'log_level'} >= numeric_level("debug")
462 29 185 if ($frame->{'package'} eq 'Future' or $frame->{'package'} eq 'Future::PP') { }
463 23 6 if $previous_is_future
566 102 0 if $result