Condition Coverage

blib/lib/Mail/SpamAssassin/NetSet.pm
Criterion Covered Total %
condition 32 44 72.7


and 3 conditions

line !l l&&!r l&&r condition
210 0 0 322 defined $ip6 and $ip6 =~ /^0:0:0:0:0:0:(.*)$/
225 321 88 34 defined $net4 && defined $net->{'ip4'} && $net->{'ip4'}->contains($net4)
226 0 396 47 defined $net6 && defined $net->{'ip6'} && $net->{'ip6'}->contains($net6)
234 8 38 1 not $declared and $net->{'exclude'}
254 86 14 17 $self->{'cache'} and exists $self->{'cache'}{$ip}
272 0 0 0 defined $result && !($result =~ /^!/)
286 24 49 123 defined $ip4 and defined $net->{'ip4'}
73 70 53 defined $ip4 and defined $net->{'ip4'} and $net->{'ip4'}->contains($ip4)
0 0 143 defined $ip6 and defined $net->{'ip6'}
0 126 17 defined $ip6 and defined $net->{'ip6'} and $net->{'ip6'}->contains($ip6)

or 2 conditions

line l !l condition
75 285 291 $self->{'nets'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
45 0 408 0 ref $class || $class
227 34 13 396 $in4 or $in6
243 322 254 0 $net4 || $net6
286 53 17 126 defined $ip4 and defined $net->{'ip4'} and $net->{'ip4'}->contains($ip4) or defined $ip6 and defined $net->{'ip6'} and $net->{'ip6'}->contains($ip6)