blib/lib/Farly/IPv4/Address.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 7 | 10 | 70.0 |
line | true | false | branch |
---|---|---|---|
15 | 0 | 626 | unless defined $address |
18 | 0 | 626 | if scalar @_ > 2 |
23 | 463 | 163 | if ($address =~ /^((\d{1,3})((\.)(\d{1,3})){3})$/) { } |
161 | 2 | elsif ($address =~ /^\d+$/) { } | |
35 | 0 | 623 | unless $ip->address >= 0 and $ip->address <= 4294967295 |