blib/lib/Net/IP/Checker.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 7 | 8 | 87.5 |
line | true | false | branch |
---|---|---|---|
20 | 1 | 1 | if not $ip =~ /:/ and ip_is_ipv4($ip) |
21 | 1 | 0 | if ip_is_ipv6($ip) |
28 | 4 | 12 | $ip =~ /^$Net::IP::Checker::IPv4_re$/ ? : |
34 | 4 | 20 | $ip =~ /^$Net::IP::Checker::IPv6_re$/ ? : |