Condition Coverage

blib/lib/JSON/Schema/Modern/Vocabulary/FormatAssertion.pm
Criterion Covered Total %
condition 16 21 76.1


and 3 conditions

line !l l&&!r l&&r condition
205 134 24 718 grep(($format eq $_), @{$formats_by_spec_version{$$state{"specification_version"}}}) and $$formats{$format}
232 22 1 2 $$schema{"format"} eq "uri-template" and not $$state{"evaluator"}->_get_format_validation($$schema{"format"})
259 0 0 3 $$state{"stringy_numbers"} and $type eq "string"
0 0 3 $$state{"stringy_numbers"} and $type eq "string" and ref $$spec{"type"} eq "ARRAY" ? CORE::any({$_ eq "number";} @{$$spec{"type"}}) : $$spec{"type"} eq "number"
0 1 2 $$state{"stringy_numbers"} and $type eq "string" and ref $$spec{"type"} eq "ARRAY" ? CORE::any({$_ eq "number";} @{$$spec{"type"}}) : $$spec{"type"} eq "number" and &looks_like_number($data)

or 3 conditions

line l !l&&r !l&&!r condition
247 6 20 1 $$state{"evaluator"}->_get_format_validation($$schema{"format"}) // $class->_get_default_format_validation($state, $$schema{"format"})
259 23 2 1 ref $$spec{"type"} eq "ARRAY" ? CORE::any({$type eq $_;} @{$$spec{"type"}}) : $type eq $$spec{"type"} or $$state{"stringy_numbers"} and $type eq "string" and ref $$spec{"type"} eq "ARRAY" ? CORE::any({$_ eq "number";} @{$$spec{"type"}}) : $$spec{"type"} eq "number" and &looks_like_number($data)