Condition Coverage

blib/lib/JSON/Validator/Util.pm
Criterion Covered Total %
condition 45 49 91.8


and 3 conditions

line !l l&&!r l&&r condition
57 829 44 127 $ref and not $blessed
59 811 22 22 $blessed and "$_[0]" eq '1' || !"$_[0]"
73 21270 38 190 &blessed($_[0]) && ($_[0]->isa('JSON::PP::Boolean') || "$_[0]" eq '1' || !$_[0])
80 1447 0 529 B::svref_2object(\$_[0])->FLAGS & 12288 && 0 + $_[0] eq $_[0] && $_[0] * 0 == 0
92 0 2 10 @$p and defined $p->[0]
2 7 3 @$p and defined $p->[0] and not length $p->[0]
180 2 7 26 ref $data eq 'HASH' and exists $data->{$p}
7 0 2 ref $data eq 'ARRAY' and $p =~ /^\d+$/
7 0 2 ref $data eq 'ARRAY' and $p =~ /^\d+$/ and @$data > $p
190 20 5 3 ref $data eq 'HASH' and $tied = tied %$data

or 2 conditions

line l !l condition
62 152 97 $_->{'type'} // ''
66 3 618 $blessed || 'string'

or 3 conditions

line l !l&&r !l&&!r condition
59 22 19 3 "$_[0]" eq '1' || !"$_[0]"
128 4 4 1847 defined $_[0]{'maxProperties'} or defined $_[0]{'minProperties'}
134 7 9 1800 defined $_[0]{'maxItems'} or defined $_[0]{'minItems'}
138 18 11 1731 defined $_[0]{'maxLength'} or defined $_[0]{'minLength'}
142 14 19 1686 defined $_[0]{'maximum'} or defined $_[0]{'minimum'}