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
58 829 44 127 $ref and not $blessed
60 811 22 22 $blessed and "$_[0]" eq '1' || !"$_[0]"
74 21271 38 190 &blessed($_[0]) && ($_[0]->isa('JSON::PP::Boolean') || "$_[0]" eq '1' || !$_[0])
81 1447 0 529 B::svref_2object(\$_[0])->FLAGS & 12288 && 0 + $_[0] eq $_[0] && $_[0] * 0 == 0
93 0 2 10 @$p and defined $p->[0]
2 7 3 @$p and defined $p->[0] and not length $p->[0]
176 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
186 20 5 3 ref $data eq 'HASH' and $tied = tied %$data

or 2 conditions

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

or 3 conditions

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