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 5 2 0 looks_like_number($_[0]) && ($_[0] == 1 || $_[0] == 0)
210 1 5 1 defined $_[0] && $_[0] eq ""
221 11 3 20 looks_like_number($_[0]) and int $_[0] == $_[0]
256 11 1 298 !(ref $_[0] || is_number(@_)) && defined $_[0]
257 0 0 157 !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 65 0 2900 $type eq "JSON::PP::Boolean" or $type eq "JSON::XS::Boolean"
65 0 2900 $type eq "JSON::PP::Boolean" or $type eq "JSON::XS::Boolean" or $type eq "Cpanel::JSON::XS::Boolean"
212 0 1 6 $is_number or $is_string
1 1 5 $is_number or $is_string or $is_undef
238 10 0 0 $ref eq "JSON::PP::Boolean" or $ref eq "HASH"
10 0 0 $ref eq "JSON::PP::Boolean" or $ref eq "HASH" or $ref eq "ARRAY"