| line |
true |
false |
branch |
|
22
|
1321 |
1573 |
if ref $class |
|
41
|
203 |
1117 |
if ($self->can("_is_resource") and $self->_is_resource) |
|
42
|
203 |
0 |
if $self->api_version |
|
43
|
203 |
0 |
if $self->kind |
|
45
|
189 |
14 |
if ($self->can("metadata") and $self->metadata) |
|
52
|
10733 |
2785 |
unless defined $value |
|
58
|
65 |
2720 |
if ($attr_info->{'is_bool'}) { } |
|
|
181 |
2539 |
elsif ($attr_info->{'is_int'}) { } |
|
|
56 |
2483 |
elsif ($attr_info->{'is_int_or_string'}) { } |
|
|
646 |
1837 |
elsif ($attr_info->{'is_object'} and builtin::blessed($value) and $value->can('TO_JSON')) { } |
|
|
217 |
1620 |
elsif ($attr_info->{'is_array_of_objects'}) { } |
|
|
0 |
1620 |
elsif ($attr_info->{'is_hash_of_objects'}) { } |
|
|
0 |
1620 |
elsif ($attr_info->{'is_array_of_int'}) { } |
|
|
101 |
1519 |
elsif (ref $value eq 'ARRAY') { } |
|
|
361 |
1158 |
elsif (ref $value eq 'HASH') { } |
|
59
|
44 |
21 |
$value ? : |
|
63
|
43 |
13 |
$value =~ /\A-?\d+\z/ ? : |
|
118
|
0 |
1 |
if ref $class |
|
139
|
0 |
4 |
if (not defined $attr) { } |
|
141
|
0 |
0 |
if $prop eq "metadata" and $class->can("metadata") |
|
143
|
0 |
0 |
if $prop eq 'apiVersion' || $prop eq 'kind' and $class->can("_is_resource") |
|
149
|
0 |
4 |
if ($local_type ne $schema_type) |
|
162
|
0 |
4 |
unless (exists $schema_props->{$jk}) |
|
172
|
0 |
4 |
if $info->{'is_str'} |
|
173
|
0 |
4 |
if $info->{'is_int'} |
|
174
|
0 |
4 |
if $info->{'is_int_or_string'} |
|
175
|
1 |
3 |
if $info->{'is_quantity'} |
|
176
|
3 |
0 |
if $info->{'is_time'} |
|
177
|
0 |
0 |
if $info->{'is_bool'} |
|
178
|
0 |
0 |
if $info->{'is_array_of_str'} |
|
179
|
0 |
0 |
if $info->{'is_array_of_int'} |
|
180
|
0 |
0 |
if $info->{'is_array_of_objects'} |
|
181
|
0 |
0 |
if $info->{'is_hash_of_str'} |
|
182
|
0 |
0 |
if $info->{'is_hash_of_objects'} |
|
183
|
0 |
0 |
if $info->{'is_object'} |
|
189
|
3 |
1 |
if (my $ref = $prop->{'$ref'}) |
|
190
|
0 |
3 |
if $ref =~ /intstr\.IntOrString$/ |
|
191
|
1 |
2 |
if $ref =~ /resource\.Quantity$/ |
|
192
|
2 |
0 |
if $ref =~ /meta\.v1\.(Micro)?Time$/ |
|
197
|
0 |
1 |
if $format eq "int-or-string" |
|
198
|
1 |
0 |
if $format eq "date-time" |
|
199
|
0 |
0 |
if ($type eq "array") |
|
201
|
0 |
0 |
if ($items->{'$ref'}) |
|
207
|
0 |
0 |
if ($type eq "object" and $prop->{'additionalProperties'}) |
|
209
|
0 |
0 |
if ($add->{'$ref'}) |