line |
true |
false |
branch |
72
|
0 |
3 |
if ($args->merge_examples)
|
83
|
0 |
4 |
ref $_[1] ? :
|
91
|
2 |
1 |
unless $self->{'none_required'}
|
92
|
0 |
3 |
$struct ? :
|
98
|
4 |
26 |
if ($schema->{'required'})
|
101
|
21 |
4 |
if ($schema->{'required'}{$key} == $total_runs)
|
107
|
4 |
26 |
if ($schema->{'properties'})
|
110
|
3 |
27 |
if $schema->{'items'}
|
118
|
8 |
51 |
if ($ref eq 'HASH') { }
|
|
5 |
46 |
elsif ($ref eq 'ARRAY') { }
|
|
2 |
44 |
elsif (not defined $data) { }
|
|
6 |
38 |
elsif ($ref eq 'SCALAR' or $ref =~ /Boolean$/) { }
|
|
9 |
29 |
elsif ($data =~ /^\d+$/) { }
|
|
0 |
29 |
elsif ($data =~ /^\d+\.\d+$/) { }
|
121
|
0 |
8 |
if ref $props->{'type'}
|
122
|
5 |
3 |
unless ($props->{'properties'})
|
123
|
4 |
1 |
unless $self->{'none_required'}
|
127
|
44 |
2 |
unless $self->{'none_required'}
|
129
|
27 |
19 |
unless ($props->{'properties'}{$key})
|
135
|
0 |
27 |
$self->{'no_id'} ? :
|
|
2 |
25 |
$self->{'spec'}{$key} ? :
|
143
|
3 |
2 |
unless ($props->{'items'})
|
145
|
3 |
0 |
unless $self->{'no_id'}
|
183
|
33 |
26 |
if (not $props->{'type'}) { }
|
|
6 |
20 |
elsif ($props->{'type'} ne $type) { }
|
186
|
2 |
4 |
unless ref $props->{'type'}
|
187
|
4 |
2 |
unless grep {$type eq $_;} @{$$props{'type'};}
|
195
|
0 |
60 |
if ((ref $example || 'SCALAR') ne 'SCALAR' and $props->{'examples'} and $self->{'merge_examples'}) { }
|
198
|
55 |
5 |
unless (grep {($_ // '') eq ($example // '');} @{$$props{'examples'};})
|