blib/lib/Net/BitTorrent/Protocol/BEP23.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 7 | 10 | 70.0 |
line | true | false | branch |
---|---|---|---|
17 | 0 | 5 | unless $peer |
19 | 1 | 4 | if $seen{$ip . ':' . $port}++ |
20 | 0 | 4 | if (not $ip =~ /^(?:(?:(?:25[0-5]|2[0-4][0-9]|[0-1]?[0-9]{1,2})[.]?){4})$/) { } |
0 | 4 | elsif ($port > 65536) { } | |
39 | 4 | 1 | $_[0] ? : |