Condition Coverage

blib/lib/Mail/SpamAssassin/Dns.pm
Criterion Covered Total %
condition 7 53 13.2


and 3 conditions

line !l l&&!r l&&r condition
203 0 0 0 $log and not $self->{'already_logged'}{$log}
226 0 0 0 defined $qname and defined $rdatastr
252 0 0 0 $self->{'sender_host'} and lc $question->qname eq lc $self->{'sender_host'}
0 0 0 $self->{'sender_host'} and lc $question->qname eq lc $self->{'sender_host'} and $question->qtype =~ /^(?:A|MX)$/
0 0 0 $self->{'sender_host'} and lc $question->qname eq lc $self->{'sender_host'} and $question->qtype =~ /^(?:A|MX)$/ and $pkt->header->rcode =~ /^(?:NXDOMAIN|SERVFAIL)$/
0 0 0 $self->{'sender_host'} and lc $question->qname eq lc $self->{'sender_host'} and $question->qtype =~ /^(?:A|MX)$/ and $pkt->header->rcode =~ /^(?:NXDOMAIN|SERVFAIL)$/ and ++$self->{'sender_host_fail'} == 2
271 0 0 0 $answ_type ne 'A' and $answ_type ne 'TXT'
332 0 0 0 not $undef and eval $subtest
337 0 0 0 $rdatastr =~ /^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/ and Mail::SpamAssassin::Util::my_inet_aton($rdatastr) & $subtest
412 2967 0 33 defined $last_poll_time and &Mail::SpamAssassin::PerMsgStatus::time() - $last_poll_time < 0.1
431 0 96 0 defined $rbl_tag and $rbl_tag ne ''
502 245 0 0 $dnsopt eq 'test' and $diff > $dnsint
577 0 0 0 $retry > 0 and @domains
690 0 0 0 $SIG{'CHLD'} and $SIG{'CHLD'} ne 'IGNORE'

or 2 conditions

line l !l condition
202 0 0 $self->{'already_logged'} ||= {}
248 0 0 $ent->{'sets'} || []
494 245 0 $self->{'conf'}{'dns_test_interval'} || 600
497 235 10 $LAST_DNS_CHECK ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
366 0 0 0 $result or $alldone