blib/lib/JSON/Validator/Util.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 45 | 49 | 91.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
57 | 791 | 44 | 121 | $ref and not $blessed |
59 | 773 | 22 | 22 | $blessed and "$_[0]" eq '1' || !"$_[0]" |
73 | 21210 | 38 | 190 | &blessed($_[0]) && ($_[0]->isa('JSON::PP::Boolean') || "$_[0]" eq '1' || !$_[0]) |
80 | 1407 | 0 | 528 | 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] | |
181 | 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 | |
191 | 20 | 5 | 3 | ref $data eq 'HASH' and $tied = tied %$data |
line | l | !l | condition |
---|---|---|---|
62 | 152 | 97 | $_->{'type'} // '' |
66 | 3 | 580 | $blessed || 'string' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
59 | 22 | 19 | 3 | "$_[0]" eq '1' || !"$_[0]" |
129 | 4 | 4 | 1798 | defined $_[0]{'maxProperties'} or defined $_[0]{'minProperties'} |
135 | 4 | 9 | 1757 | defined $_[0]{'maxItems'} or defined $_[0]{'minItems'} |
139 | 18 | 11 | 1724 | defined $_[0]{'maxLength'} or defined $_[0]{'minLength'} |
143 | 14 | 19 | 1679 | defined $_[0]{'maximum'} or defined $_[0]{'minimum'} |