Branch Coverage

blib/lib/IO/K8s/Role/NetworkPolicy.pm
Criterion Covered Total %
branch 25 72 34.7


line true false branch
14 0 3 if ($format eq 'core') { }
3 0 elsif ($format eq 'cilium') { }
33 0 2 if ($format eq 'core') { }
2 0 elsif ($format eq 'cilium') { }
52 0 1 if ($format eq 'core') { }
1 0 elsif ($format eq 'cilium') { }
60 0 1 $opts{'ports'} ? :
71 0 1 if ($format eq 'core') { }
1 0 elsif ($format eq 'cilium') { }
81 1 0 $opts{'ports'} ? :
92 0 1 if ($format eq 'core') { }
1 0 elsif ($format eq 'cilium') { }
102 1 0 $opts{'ports'} ? :
114 0 1 if ($format eq 'core') { }
1 0 elsif ($format eq 'cilium') { }
135 0 2 if ($format eq 'core') { }
2 0 elsif ($format eq 'cilium') { }
153 0 2 if ($format eq 'core') { }
2 0 elsif ($format eq 'cilium') { }
171 0 1 if ($format eq 'core') { }
1 0 elsif ($format eq 'cilium') { }
190 2 3 unless $cidr =~ m[/] and defined "Net::IP"->new($cidr)
198 0 0 unless ($self->spec)
199 0 0 if ($self->_netpol_format eq "core")
210 0 0 unless $self->_netpol_format eq "core"
213 0 0 unless (grep {$_ eq $type;} @$types)
221 0 0 unless $ports
241 0 0 if $from
243 0 0 if ($ports)
266 0 0 if $from_list
268 0 0 if ($ports)
291 0 0 if $to
293 0 0 if ($ports)
316 0 0 if $to_list
318 0 0 if ($ports)
336 1 1 $ports ? :