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 342 defined $ip6 and $ip6 =~ /^0:0:0:0:0:0:(.*)$/
225 341 88 34 defined $net4 && defined $net->{'ip4'} && $net->{'ip4'}->contains($net4)
226 0 416 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 305 311 $self->{'nets'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
45 0 438 0 ref $class || $class
227 34 13 416 $in4 or $in6
243 342 274 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)