| line |
true |
false |
branch |
|
53
|
0 |
5 |
if $_generated{$class} |
|
63
|
0 |
5 |
if $_generated{$class} |
|
79
|
0 |
5 |
unless my $k8s = $class->can("k8s") |
|
91
|
1 |
24 |
unless defined $type_spec |
|
99
|
1 |
4 |
if (my $gvk = $schema->{'x-kubernetes-group-version-kind'}) |
|
100
|
1 |
0 |
ref $gvk eq 'ARRAY' ? : |
|
104
|
1 |
0 |
$group ? : |
|
108
|
1 |
4 |
if exists $opts{'api_version'} |
|
109
|
1 |
4 |
if exists $opts{'kind'} |
|
110
|
1 |
4 |
if exists $opts{'resource_plural'} |
|
111
|
1 |
4 |
if exists $opts{'is_namespaced'} |
|
114
|
2 |
3 |
if (defined $api_ver and defined $kind_val) |
|
131
|
1 |
1 |
if ($is_namespaced) |
|
151
|
5 |
20 |
if (my $ref = $schema->{'$ref'}) |
|
155
|
1 |
4 |
if ($ref =~ /intstr\.IntOrString$/) |
|
158
|
1 |
3 |
if ($ref =~ /resource\.Quantity$/) |
|
161
|
2 |
1 |
if ($ref =~ /meta\.v1\.(Micro)?Time$/) |
|
166
|
0 |
1 |
if ($OPAQUE_TYPES{$ref}) |
|
171
|
0 |
1 |
if ($all_defs and $all_defs->{$ref}) |
|
180
|
11 |
9 |
if ($type eq 'string') { } |
|
|
3 |
6 |
elsif ($type eq 'integer') { } |
|
|
0 |
6 |
elsif ($type eq 'number') { } |
|
|
1 |
5 |
elsif ($type eq 'boolean') { } |
|
|
1 |
4 |
elsif ($type eq 'array') { } |
|
|
4 |
0 |
elsif ($type eq 'object') { } |
|
182
|
1 |
10 |
if $format eq "int-or-string" |
|
183
|
1 |
9 |
if $format eq "date-time" |
|
197
|
0 |
1 |
if (my $ref = $items->{'$ref'}) |
|
199
|
0 |
0 |
if ($all_defs and $all_defs->{$ref}) |
|
206
|
1 |
0 |
if $item_type eq "string" |
|
207
|
0 |
0 |
if $item_type eq "integer" |
|
211
|
1 |
3 |
if (my $addl = $schema->{'additionalProperties'}) |
|
212
|
0 |
1 |
if (my $ref = $addl->{'$ref'}) |
|
214
|
0 |
0 |
if ($all_defs and $all_defs->{$ref}) |
|
237
|
27 |
5 |
if $current |
|
240
|
22 |
10 |
unless (%{"${current}::";}) |
|
242
|
0 |
22 |
unless eval "package $current; 1;" |