Condition Coverage

blib/lib/IO/K8s/Role/NetworkPolicy.pm
Criterion Covered Total %
condition 17 53 32.0


and 3 conditions

line !l l&&!r l&&r condition
190 2 0 3 $cidr =~ m[/] and defined "Net::IP"->new($cidr)

or 2 conditions

line l !l condition
22 0 3 $self->spec // {}
56 1 0 $self->spec // {}
57 0 1 $spec->{'ingress'} //= []
77 1 0 $self->spec // {}
78 0 1 $spec->{'ingress'} //= []
98 1 0 $self->spec // {}
99 0 1 $spec->{'egress'} //= []
119 1 0 $self->spec // {}
120 0 1 $spec->{'egress'} //= []
138 2 0 $self->spec // {}
139 0 2 $spec->{'egress'} //= []
159 2 0 $self->spec // {}
176 1 0 $self->spec // {}
212 0 0 $spec->policyTypes // []
226 0 0 $_->{'protocol'} // "TCP"
237 0 0 $spec->ingress // []
247 0 0 $_->{'protocol'} // "TCP"
262 0 0 $spec->ingress // []
272 0 0 $_->{'protocol'} // "TCP"
287 0 0 $spec->egress // []
297 0 0 $_->{'protocol'} // "TCP"
312 0 0 $spec->egress // []
322 0 0 $_->{'protocol'} // "TCP"
334 2 0 $self->spec // {}
335 0 2 $spec->{'ingress'} //= []