Condition Coverage

blib/lib/JSON/Color.pm
Criterion Covered Total %
condition 16 35 45.7


and 3 conditions

line !l l&&!r l&&r condition
166 0 0 0 $sul_available and &Scalar::Util::blessed($data)
0 0 0 $sul_available and &Scalar::Util::blessed($data) and $data->can("TO_JSON")
175 0 2 1 $sul_available and &Scalar::Util::LooksLikeNumber::looks_like_number($data) =~ /^(4|12|4352|8704)$/o

or 2 conditions

line l !l condition
47 3 3 $_ //= ""
70 0 1 $ct->get_item_color_as_ansi("number") // ""
84 0 1 $ct->get_item_color_as_ansi("null") // ""
98 0 1 $ct->get_item_color_as_ansi($value ? "true" : "false") // ""
192 0 2 $opts //= {}
193 0 2 $opts->{'_indent'} //= 0
198 0 1 (((defined $ENV{'NO_COLOR'} ? "NoColor" : undef) // $ENV{'JSON_COLOR_COLOR_THEME'}) // $ENV{'COLOR_THEME'}) // "default_ansi"

or 3 conditions

line l !l&&r !l&&!r condition
166 0 1 3 $ref eq "JSON::XS::Boolean" or $ref eq "JSON::PP::Boolean"
198 1 0 1 (defined $ENV{'NO_COLOR'} ? "NoColor" : undef) // $ENV{'JSON_COLOR_COLOR_THEME'}
0 0 1 ((defined $ENV{'NO_COLOR'} ? "NoColor" : undef) // $ENV{'JSON_COLOR_COLOR_THEME'}) // $ENV{'COLOR_THEME'}
0 2 0 $opts->{'color_theme'} //= (((defined $ENV{'NO_COLOR'} ? "NoColor" : undef) // $ENV{'JSON_COLOR_COLOR_THEME'}) // $ENV{'COLOR_THEME'}) // "default_ansi"