Condition Coverage

blib/lib/JSONSchema/Validator/Util.pm
Criterion Covered Total %
condition 23 42 54.7


and 3 conditions

line !l l&&!r l&&r condition
100 0 0 0 $x and $x eq 1
209 57 2 0 looks_like_number($_[0]) && ($_[0] == 1 || $_[0] == 0)
210 1 47 11 defined $_[0] && $_[0] eq ""
221 63 20 24 looks_like_number($_[0]) and int $_[0] == $_[0]
256 11 1 298 !(ref $_[0] || is_number(@_)) && defined $_[0]
257 0 0 202 !ref($_[0]) && defined $_[0]

or 3 conditions

line l !l&&r !l&&!r condition
101 0 0 0 not defined $x or $x eq 0
0 0 0 not defined $x or $x eq 0 or $x eq ""
205 85 0 2982 $type eq "JSON::PP::Boolean" or $type eq "JSON::XS::Boolean"
85 0 2982 $type eq "JSON::PP::Boolean" or $type eq "JSON::XS::Boolean" or $type eq "Cpanel::JSON::XS::Boolean"
212 0 11 48 $is_number or $is_string
11 1 47 $is_number or $is_string or $is_undef
238 30 0 0 $ref eq "JSON::PP::Boolean" or $ref eq "HASH"
30 0 0 $ref eq "JSON::PP::Boolean" or $ref eq "HASH" or $ref eq "ARRAY"