blib/lib/Net/BitTorrent/PeerPacket.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 18 | 72.2 |
line | true | false | branch |
---|---|---|---|
102 | 0 | 10 | unless @_ % 2 == 0 |
112 | 0 | 10 | unless defined $bt_dispatch{$bt_code} |
125 | 1 | 9 | if (unpack('c', ${$packet_ref;}) eq 19) |
131 | 0 | 9 | unless defined $bt_dispatch{$bt_code} |
137 | 4 | 5 | if ref $parse_ref eq 'HASH' |
243 | 4 | 5 | unless defined $packet_body |
244 | 7 | 2 | unless defined $data_ref |
359 | 0 | 16 | unless ref $hash eq 'HASH' |
363 | 0 | 23 | unless defined $$hash{$key} |