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