Condition Coverage

blib/lib/IO/K8s/Role/APIObject.pm
Criterion Covered Total %
condition 31 78 39.7


and 3 conditions

line !l l&&!r l&&r condition
141 1 2 2 defined $labels && exists $labels->{$key}
147 0 0 1 $self->metadata and $self->metadata->labels
159 1 1 3 exists $labels->{$key} and $labels->{$key} eq $expected{$key}
185 1 2 2 defined $annotations && exists $annotations->{$key}
191 0 0 1 $self->metadata and $self->metadata->annotations
203 0 4 16 $self->can("status") and defined $self->status
207 16 0 0 builtin::blessed($status) and $status->can("conditions")
214 0 3 13 ref $status eq "HASH" and ref $status->{'conditions'} eq "ARRAY"
223 28 0 0 builtin::blessed($cond) and $cond->can($field)
243 0 15 7 defined $ctype and $ctype eq $type
254 0 1 3 defined $status && $status eq 'True'
306 0 0 0 builtin::blessed($ref) and $ref->can("name")
317 0 0 0 defined $owner_uid and $owner_uid ne ""
0 0 0 defined $owner_uid and $owner_uid ne "" and defined $ruid
0 0 0 defined $owner_uid and $owner_uid ne "" and defined $ruid and $ruid ne ""
0 0 0 defined $owner_name and defined $rname
0 0 0 defined $owner_name and defined $rname and defined $owner_kind
0 0 0 defined $owner_name and defined $rname and defined $owner_kind and defined $rkind
320 0 0 0 $rname eq $owner_name and $rkind eq $owner_kind

or 2 conditions

line l !l condition
114 1 3 $meta->labels // {}
124 0 1 $meta->labels // {}
168 0 2 $meta->annotations // {}
282 0 0 $meta->ownerReferences // []
284 0 0 $owner->metadata->uid // ""
330 0 0 $self->metadata->ownerReferences // []

or 3 conditions

line l !l&&r !l&&!r condition
39 368 17 0 ref $self || $self
47 64 107 0 $API_GROUP_MAP{$group_lc} // $group_lc
66 475 49 0 ref $self || $self