line |
true |
false |
branch |
15
|
0 |
74 |
unless (ref $definition || '') eq 'HASH' |
17
|
1 |
73 |
if ($definition->{'items'}) |
20
|
1 |
0 |
if ($type eq 'HASH') { } |
|
0 |
0 |
elsif ($type eq 'ARRAY') { } |
27
|
48 |
26 |
if ($definition->{'properties'}) |
30
|
48 |
0 |
if ($type eq 'HASH') |
43
|
0 |
42 |
unless (ref $definition || '') eq 'HASH' |
46
|
3 |
39 |
if ($ref) |
49
|
1 |
2 |
if $def and not $ref =~ qr"^/resource/[^/]+$"u |
70
|
54 |
59 |
if exists $definition->{'example'} |
72
|
1 |
58 |
if (my $union = $definition->{'oneOf'} || $definition->{'anyOf'} || $definition->{'allOf'}) |
77
|
25 |
33 |
if ($ref) |
80
|
25 |
0 |
if $def |
87
|
0 |
46 |
unless ($exists) |
88
|
0 |
0 |
if (exists $_[1]{'default'}) |
93
|
46 |
0 |
if $exists |
96
|
33 |
0 |
if $type eq 'object' |
98
|
0 |
0 |
if ($type eq 'array') |
99
|
0 |
0 |
if $result{'[]'} |
103
|
0 |
0 |
unless $_ =~ /\A\[([0-9]+)\]\z/u |