Branch Coverage

blib/lib/JSON/Schema/Modern/Vocabulary/FormatAnnotation.pm
Criterion Covered Total %
branch 16 18 88.8


line true false branch
43 0 1461 unless assert_keyword_type($state, $schema, "string")
49 1049 938 unless $$state{"validate_formats"}
61 157 781 unless $spec
64 90 691 if $type eq "integer"
69 40 741 ref $$spec{'type'} eq 'ARRAY' ? :
0 3 ref $$spec{'type'} eq 'ARRAY' ? :
1 2 unless 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)
83 12 187 ref $$spec{'type'} eq 'ARRAY' ? :
199 230 unless $valid