Condition Coverage

lib/Net/validMX.pm
Criterion Covered Total %
condition 35 72 48.6


and 3 conditions

line !l l&&!r l&&r condition
164 1 0 0 defined $self->{'debug'} and $self->{'debug'} ne ""
165 1 0 0 defined $self->{'allow_ip_address_as_mx'} and $self->{'allow_ip_address_as_mx'} ne ""
166 1 0 0 defined $self->{'flag_intranets'} and $self->{'flag_intranets'} ne ""
167 1 0 0 defined $self->{'resolution_problem_return'} and $self->{'resolution_problem_return'} ne ""
168 1 0 0 defined $self->{'query_timeout'} and $self->{'query_timeout'} ne ""
313 38 0 0 $answer[$i]->exchange eq "" and int $answer[$i]->preference == 0
38 0 0 $answer[$i]->exchange eq "" and int $answer[$i]->preference == 0 and $i == $#answer
322 0 2 36 $answer[$i]->exchange ne "" and not $answer[$i]->exchange =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
333 0 29 7 defined $packet and $packet->header->ancount < 1
345 2 5 31 defined $packet and $packet->header->ancount > 0
352 22 5 1 $rv == 2 and $i == $#answer
377 1 0 0 $rv == 2 and $i == $#answer
395 0 0 0 $params{'allow_ip_address_as_mx'} > 0 and $answer[$i]->exchange =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
422 0 5 2 $params{'allow_ip_address_as_mx'} > 0 and $answer[$i]->exchange =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
561 0 31 3 $flag_intranets and $ip =~ /^10\./
565 0 31 0 $flag_intranets and $ip =~ /^172\.(16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31)\./
569 0 27 4 $flag_intranets and $ip =~ /^192\.168\./
574 0 27 0 $flag_intranets and $ip =~ /^fc00\:0\:/i
579 0 27 0 $flag_intranets and $ip =~ /^fd00\:0\:/i

or 3 conditions

line l !l&&r !l&&!r condition
220 36 0 1 $params{'email'} or $params{'sender'}
352 1 1 27 $rv == 1 or $rv == 2 and $i == $#answer
377 0 0 1 $rv == 1 or $rv == 2 and $i == $#answer
476 4 0 0 $resolution_problem_return ||= $Net::validMX::RESOLUTION_PROBLEM_RETURN
702 0 0 5 $local =~ /^\./ or $local =~ /\.$/g