Condition Coverage

blib/lib/Log/Any/Adapter/DERIV.pm
Criterion Covered Total %
condition 22 32 68.7


and 3 conditions

line !l l&&!r l&&r condition
217 20 16 66 $self->{$name}{'format'} ne "json" and $self->{$name}{'format'} ne "text"
351 81 0 0 $self->{'context'} and ref $self->{'context'} eq "HASH"

or 2 conditions

line l !l condition
340 14 6 shift() // 0

or 3 conditions

line l !l&&r !l&&!r condition
169 0 0 0 eval { do { $JSON->encode($_) } } // Log::Any::Proxy::_stringify_params($_)
207 106 24 50 $self->{'json_log_file'} or $self->{'stderr'}
217 0 83 19 not $self->{$name}{'format'} or $self->{$name}{'format'} ne "json" and $self->{$name}{'format'} ne "text"
220 0 32 70 $self->{$name}{'color'} //= _fh_is_tty($fh)
286 7 0 11 $opts->{'color'} || $opts->{'colour'}
338 6 69 0 $json_data //= encode_json_text($data) . "\n"
340 2 18 0 $text_data{$color} //= $self->format_line($data, {"color", $color}) . "\n"
459 6 23 185 $frame->{'package'} eq "Future" or $frame->{'package'} eq "Future::PP"