Branch Coverage

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


line true false branch
43 0 1449 unless assert_keyword_type($state, $schema, "string")
49 1049 926 unless $$state{"validate_formats"}
61 157 769 unless $spec
64 90 679 if $type eq "integer"
69 40 729 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 169 ref $$spec{'type'} eq 'ARRAY' ? :
181 236 unless $valid