Condition Coverage

blib/lib/IO/K8s.pm
Criterion Covered Total %
condition 26 54 48.1


and 3 conditions

line !l l&&!r l&&r condition
176 0 0 299 _class_exists($full_class) and $full_class->can("api_version")
186 0 0 17 _class_exists($orig_class) and $orig_class->can("api_version")
188 0 3 14 $orig_av and not exists $$map{"$orig_av/$kind"}
270 0 0 0 ref $self and $self->has_openapi_spec
293 0 0 0 ref $self and $self->has_openapi_spec
389 1502 0 0 not defined $params and ref $class_or_struct eq "HASH"
397 1484 0 18 builtin::blessed($params) and $params->isa($class)
428 126 25 4 @args >= 2 and ref $args[0] eq "HASH"
151 0 4 @args >= 2 and ref $args[0] eq "HASH" and not ref $args[1]
25 0 126 @args == 1 and ref $args[0] eq "HASH"
527 5 0 1 not $file_or_string =~ /\n/ and -f $file_or_string
547 0 0 11 $doc and ref $doc eq "HASH"

or 2 conditions

line l !l condition
319 0 0 $spec->{'definitions'} // {}
480 3314 182 $attr_info->{$perl_name} // {}
553 2 0 $doc->{'kind'} // "unknown"

or 3 conditions

line l !l&&r !l&&!r condition
462 0 15592 0 $attr_info->{$perl_name}{'json_key'} // $perl_name
479 3314 182 0 $json_to_perl{$attr} // $attr
491 0 50 29 ref $value eq '' && lc $value eq 'true' || $value
552 2 0 0 $doc->{'metadata'}{'name'} // "document $i"