| line |
true |
false |
branch |
|
147
|
33 |
27 |
if @{$self->with;} |
|
158
|
5 |
44 |
if (ref $provider eq 'HASH') { } |
|
161
|
10 |
34 |
ref $provider ? : |
|
171
|
36 |
263 |
$class_path =~ /^\+/ ? : |
|
176
|
299 |
0 |
if (_class_exists($full_class) and $full_class->can("api_version")) |
|
180
|
17 |
282 |
if (exists $map->{$kind}) { } |
|
184
|
0 |
17 |
$orig_path =~ /^\+/ ? : |
|
186
|
17 |
0 |
if (_class_exists($orig_class) and $orig_class->can("api_version")) |
|
188
|
14 |
3 |
if ($orig_av and not exists $$map{"$orig_av/$kind"}) |
|
193
|
17 |
0 |
if ($api_version) |
|
200
|
282 |
0 |
if ($api_version) |
|
224
|
0 |
1894 |
if $class =~ /^\+/ |
|
227
|
1489 |
405 |
if $class =~ /^IO::K8s::/ |
|
230
|
11 |
394 |
if _class_exists($class) |
|
232
|
394 |
0 |
ref $self ? : |
|
235
|
71 |
323 |
if ($class =~ m[/]) |
|
236
|
70 |
1 |
if (my $mapped = $map->{$class}) |
|
237
|
12 |
58 |
$mapped =~ /^\+/ ? : |
|
243
|
91 |
232 |
if ($api_version) |
|
245
|
29 |
62 |
if (my $mapped = $map->{$qualified}) |
|
246
|
8 |
21 |
$mapped =~ /^\+/ ? : |
|
251
|
294 |
0 |
if (my $mapped = $map->{$class}) |
|
253
|
13 |
281 |
if $mapped =~ /^\+/ |
|
258
|
281 |
0 |
if (ref $self) |
|
261
|
1 |
0 |
if _class_exists($user_class) |
|
267
|
280 |
0 |
if _class_exists($builtin_class) |
|
270
|
0 |
0 |
if (ref $self and $self->has_openapi_spec) |
|
272
|
0 |
0 |
if $autogen |
|
281
|
0 |
0 |
if (ref $self) |
|
284
|
0 |
0 |
if _class_exists($user_class) |
|
290
|
0 |
0 |
if _class_exists($builtin_class) |
|
293
|
0 |
0 |
if (ref $self and $self->has_openapi_spec) |
|
295
|
0 |
0 |
if $autogen |
|
306
|
516 |
486 |
if $class->can("new") |
|
316
|
0 |
0 |
unless $self->has_openapi_spec |
|
323
|
0 |
0 |
unless $def_name |
|
327
|
0 |
0 |
if $_autogen_cache{$cache_key} |
|
350
|
0 |
0 |
if (my $gvk_list = $def->{'x-kubernetes-group-version-kind'}) |
|
352
|
0 |
0 |
if ($gvk->{'kind'} eq $kind) |
|
358
|
0 |
0 |
if ($def_name =~ /\.\Q$kind\E$/) |
|
375
|
7 |
2 |
unless (defined $json) |
|
389
|
0 |
1502 |
if (not defined $params and ref $class_or_struct eq "HASH") |
|
397
|
18 |
1484 |
if builtin::blessed($params) and $params->isa($class) |
|
408
|
49 |
31 |
ref $data eq 'HASH' ? : |
|
411
|
0 |
80 |
unless my $kind = $struct->{'kind'} |
|
428
|
4 |
151 |
if (@args >= 2 and ref $args[0] eq 'HASH' and not ref $args[1]) { } |
|
|
126 |
25 |
elsif (@args == 1 and ref $args[0] eq 'HASH') { } |
|
446
|
0 |
1564 |
if (builtin::blessed($params)) |
|
447
|
0 |
0 |
if $params->can("TO_JSON") |
|
451
|
0 |
1564 |
unless ref $params eq "HASH" |
|
470
|
0 |
3496 |
unless defined $value |
|
473
|
0 |
3496 |
if ($opaque_fields{$attr}) |
|
482
|
299 |
3197 |
if ($info->{'is_array_of_objects'}) { } |
|
|
2 |
3195 |
elsif ($info->{'is_hash_of_objects'}) { } |
|
|
892 |
2303 |
elsif ($info->{'is_object'}) { } |
|
|
79 |
2224 |
elsif ($info->{'is_bool'}) { } |
|
491
|
50 |
29 |
ref $value eq '' && lc $value eq 'true' || $value ? : |
|
527
|
1 |
5 |
if (not $file_or_string =~ /\n/ and -f $file_or_string) { } |
|
529
|
0 |
1 |
unless open my $fh, "<", $file_or_string |
|
547
|
0 |
11 |
unless $doc and ref $doc eq "HASH" |
|
549
|
2 |
9 |
if ($collect_errors) { } |
|
551
|
2 |
0 |
if ($@) |
|
562
|
1 |
4 |
if ($collect_errors) |