Condition Coverage

blib/lib/Net/validMX.pm
Criterion Covered Total %
condition 27 51 52.9


and 3 conditions

line !l l&&!r l&&r condition
181 36 0 0 $answer[$i]->exchange eq '' and int $answer[$i]->preference == 0
36 0 0 $answer[$i]->exchange eq '' and int $answer[$i]->preference == 0 and $i == $#answer
190 0 2 34 $answer[$i]->exchange ne '' and not $answer[$i]->exchange =~ /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
201 0 28 6 defined $packet and $packet->header->ancount < 1
213 2 5 29 defined $packet and $packet->header->ancount > 0
220 20 5 1 $rv == 2 and $i == $#answer
245 1 0 0 $rv == 2 and $i == $#answer
263 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}$/
290 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}$/
427 0 27 3 $flag_intranets and $ip =~ /^10\./
431 0 27 0 $flag_intranets and $ip =~ /^172\.(16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31)\./
435 0 23 4 $flag_intranets and $ip =~ /^192\.168\./

or 3 conditions

line l !l&&r !l&&!r condition
88 33 0 1 $params{'email'} or $params{'sender'}
220 0 1 25 $rv == 1 or $rv == 2 and $i == $#answer
245 0 0 1 $rv == 1 or $rv == 2 and $i == $#answer
342 3 0 0 $resolution_problem_return ||= $Net::validMX::RESOLUTION_PROBLEM_RETURN
553 0 0 5 $local =~ /^\./ or $local =~ /\.$/g