blib/lib/Net/BitTorrent/Protocol/BEP06.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 14 | 20 | 70.0 |
line | true | false | branch |
---|---|---|---|
29 | 0 | 2 | unless (defined $index and $index =~ /^\d+$/) |
41 | 0 | 2 | unless (defined $index and $index =~ /^\d+$/) |
46 | 0 | 2 | unless (defined $offset and $offset =~ /^\d+$/) |
51 | 0 | 2 | unless (defined $length and $length =~ /^\d+$/) |
62 | 0 | 2 | unless (defined $index and $index =~ /^\d+$/) |
74 | 2 | 9 | if (not $packet or length $packet < 1) |
84 | 2 | 6 | if (not $packet or length $packet < 9) |
96 | 2 | 9 | if (not $packet or length $packet < 1) |
111 | 2 | 16 | if scalar @a == $k |
113 | 16 | 0 | unless grep {$_ == $index;} @a |