| blib/lib/IO/K8s/Role/Resource.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 54 | 35.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 41 | 1117 | 0 | 203 | $self->can("_is_resource") and $self->_is_resource |
| 45 | 0 | 14 | 189 | $self->can("metadata") and $self->metadata |
| 58 | 1837 | 0 | 646 | $attr_info->{'is_object'} and builtin::blessed($value) |
| 1837 | 0 | 646 | $attr_info->{'is_object'} and builtin::blessed($value) and $value->can("TO_JSON") | |
| 141 | 0 | 0 | 0 | $prop eq "metadata" and $class->can("metadata") |
| 143 | 0 | 0 | 0 | $prop eq 'apiVersion' || $prop eq 'kind' and $class->can("_is_resource") |
| 207 | 0 | 0 | 0 | $type eq "object" and $prop->{'additionalProperties'} |
| line | l | !l | condition |
|---|---|---|---|
| 23 | 2891 | 3 | $IO::K8s::Resource::_attr_registry{$class} // {} |
| 54 | 2785 | 0 | $info->{$attr} // {} |
| 120 | 1 | 0 | $IO::K8s::Resource::_attr_registry{$class} // {} |
| 121 | 1 | 0 | $schema->{'properties'} // {} |
| 195 | 1 | 0 | $prop->{'type'} // "unknown" |
| 196 | 1 | 0 | $prop->{'format'} // "" |
| 200 | 0 | 0 | $prop->{'items'} // {} |
| 204 | 0 | 0 | $items->{'type'} // "unknown" |
| 212 | 0 | 0 | $add->{'type'} // "unknown" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 29 | 1320 | 0 | 0 | ref $self || $self |
| 56 | 0 | 2785 | 0 | $attr_info->{'json_key'} // $attr |
| 126 | 0 | 4 | 0 | $local_attrs->{$attr}{'json_key'} // $attr |
| 143 | 0 | 0 | 0 | $prop eq 'apiVersion' || $prop eq 'kind' |
| 161 | 0 | 4 | 0 | $local_attrs->{$attr}{'json_key'} // $attr |