Condition Coverage

blib/lib/Mail/SpamAssassin/DnsResolver.pm
Criterion Covered Total %
condition 16 55 29.0


and 3 conditions

line !l l&&!r l&&r condition
104 0 92 0 not $force_ipv4 and $io_socket_module_name eq "IO::Socket::INET"
150 0 0 92 $edns and $edns > 512
177 0 0 92 not $self->{'no_resolver'} and defined $Net::DNS::VERSION
267 0 0 0 $lport >= 0 and $lport <= 65535
309 0 0 0 vec $ports_bitset, $ind++, 1 and ++$cnt
598 0 0 21 $udp_payload_size and $udp_payload_size > 512
701 0 0 21 $self->{'sock'} and defined $self->{'sock'}->send($pkt->data, 0)
748 0 0 21 defined $decoded_length and $decoded_length ne ""
0 21 0 defined $decoded_length and $decoded_length ne "" and $decoded_length != length $data
930 8 0 8 $i < $retries and not defined $answerpkt

or 2 conditions

line l !l condition
410 2 0 $srcaddr || 'x'
836 0 0 $self->{'conf'}{'dns_options'}{'edns'} || 512

or 3 conditions

line l !l&&r !l&&!r condition
71 0 91 0 ref $class || $class
238 115 0 0 $self->{'force_ipv4'} or $self->{'force_ipv6'}
427 0 0 0 $! == 98 or $! == 13
536 0 0 21 not defined $type or $type eq "PTR"
777 0 8 24 not defined $timeout or $timeout > 0
785 0 0 32 not defined $nfound or $nfound < 0
857 0 0 0 $rcode eq "REFUSED" or $id =~ m[^\d+/NO_QUESTION_IN_PACKET\z]