Branch Coverage

blib/lib/Mail/SpamAssassin/Plugin/DNSEval.pm
Criterion Covered Total %
branch 0 80 0.0


line true false branch
86 0 0 unless $ip
87 0 0 if exists $seen{$ip}
88 0 0 if $ip =~ /$IP_PRIVATE/o
101 0 0 unless (defined $pms->{'accreditor_tag'})
104 0 0 if ($pms->{'accreditor_tag'}{$accreditor})
127 0 0 if ($pms->get('EnvelopeFrom:addr') =~ /[\@.]a--([a-z0-9]{3,})\./i)
132 0 0 if (defined $accreditor_field)
136 0 0 if ($#terms >= 0)
151 0 0 if $self->{'main'}{'conf'}{'skip_rbl_checks'}
152 0 0 unless $pms->is_dns_available
155 0 0 if (not $rbl_server =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/ and index($rbl_server, '.') >= 0 and not $rbl_server =~ /\.$/)
171 0 0 !$_->{'internal'} ? :
182 0 0 unless defined $str and $str ne ''
192 0 0 unless scalar @ips + scalar(@originating) > 0
208 0 0 if ($set =~ /-(notfirsthop|lastexternal)$/) { }
0 0 elsif ($set =~ /-(first|un)trusted$/) { }
215 0 0 if ($1 eq 'lastexternal') { }
216 0 0 defined $ips[0] ? :
218 0 0 if scalar @ips > 1
229 0 0 if ($ip and not $trusted->contains_ip($ip))
234 0 0 if ($1 eq 'first') { }
235 0 0 defined $ips[0] ? :
244 0 0 if ($ip and not $trusted->contains_ip($ip))
256 0 0 if (scalar @ips > $checklast)
263 0 0 if (defined $tflags and not $tflags =~ /\bnice\b/)
268 0 0 unless (scalar @ips > 0)
278 0 0 if defined $revip
302 0 0 if $self->{'main'}{'conf'}{'skip_rbl_checks'}
303 0 0 unless $pms->is_dns_available
346 0 0 if $self->{'main'}{'conf'}{'skip_rbl_checks'}
347 0 0 unless $pms->is_dns_available
351 0 0 unless defined $_ and / \@ ( [^\@\s]+ )/x
357 0 0 if $address =~ /\./
359 0 0 unless scalar keys %hosts
363 0 0 if (not $rbl_server =~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/ and index($rbl_server, '.') >= 0 and not $rbl_server =~ /\.$/)
381 0 0 unless defined $from
384 0 0 if ($from =~ / \@ ( [^\@\s]+ \. [^\@\s]+ )/x)
389 0 0 unless defined $host
393 0 0 unless $pms->is_dns_available
396 0 0 if ($host eq 'compiling.spamassassin.taint.org')