Subroutine Coverage

blib/lib/Net/BitTorrent/Peer.pm
Criterion Covered Total %
subroutine 92 105 87.6
pod 45 45 100.0


line count pod subroutine
4 11 n/a BEGIN
5 11 n/a BEGIN
6 11 n/a BEGIN
7 11 n/a BEGIN
8 11 n/a BEGIN
9 11 n/a BEGIN
10 11 n/a BEGIN
11 11 n/a BEGIN
12 11 n/a BEGIN
13 11 n/a BEGIN
15 11 n/a BEGIN
16 11 n/a BEGIN
38 11 n/a BEGIN
39 11 n/a BEGIN
40 11 n/a BEGIN
41 11 n/a BEGIN
86 11 Yes DISCONNECT_BY_REMOTE
87 11 Yes DISCONNECT_LOOPBACK
88 11 Yes DISCONNECT_NO_SUCH_TORRENT
89 11 Yes DISCONNECT_HANDSHAKE_INFOHASH
90 11 Yes DISCONNECT_MALFORMED_HANDSHAKE
91 11 Yes DISCONNECT_MALFORMED_PACKET
92 11 Yes DISCONNECT_PREXISTING
93 11 Yes DISCONNECT_TOO_MANY
94 11 Yes DISCONNECT_HASHCHECKING
95 14 Yes DISCONNECT_SEED
96 29 Yes DISCONNECT_TIMEOUT_HANDSHAKE
97 11 Yes DISCONNECT_USELESS_PEER
98 42 Yes DISCONNECT_HANDSHAKE_SYNC_DH5
101 43 Yes MSE_ONE
102 78 Yes MSE_TWO
103 43 Yes MSE_THREE
104 43 Yes MSE_FOUR
105 43 Yes MSE_FIVE
106 76 Yes REG_ONE
107 68 Yes REG_TWO
108 62 Yes REG_THREE
109 1045 Yes REG_OKAY
112 222 Yes CRYPTO_PLAIN
113 854 Yes CRYPTO_RC4
114 0 Yes CRYPTO_XOR
115 0 Yes CRYPTO_AES
118 128 Yes DH_P
122 64 Yes DH_G
123 148 Yes VC
126 32 Yes crypto_provide
129 92 Yes len
134 135 Yes new
318 44 n/a __ANON__
352 130 n/a __ANON__
372 943 Yes peerid
375 2453 n/a _socket
376 3954 Yes torrent
377 4 Yes reserved_bytes
378 22 Yes bitfield
381 2198 Yes port
393 2198 Yes host
406 4 Yes peer_choking
407 176 Yes am_choking
408 4 Yes peer_interested
409 4 Yes am_interested
410 4 Yes incoming
411 4 Yes source
417 4657 n/a _rw
505 518 n/a _syswrite
550 942 n/a _parse_packets
628 32 n/a ___handle_encrypted_handshake_one
653 124 n/a ___handle_encrypted_handshake_two
711 88 n/a ___handle_encrypted_handshake_three
783 82 n/a ___handle_encrypted_handshake_four
908 70 n/a ___handle_encrypted_handshake_five
1001 51 n/a ___handle_plaintext_handshake_one
1028 89 n/a ___handle_plaintext_handshake_two
1125 81 n/a ___handle_plaintext_handshake_three
1187 0 n/a __handle_keepalive
1210 0 n/a __handle_choke
1241 17 n/a __handle_unchoke
1266 17 n/a __handle_interested
1291 2 n/a __handle_not_interested
1316 24 n/a __handle_have
1351 0 n/a __handle_bitfield
1382 5 n/a __handle_request
1420 3 n/a __handle_piece
1519 0 n/a __handle_cancel
1556 9 n/a __handle_have_all
1590 39 n/a __handle_have_none
1612 0 n/a __handle_allowed_fast
1630 0 n/a __handle_reject
1675 50 n/a __handle_ext_protocol
1715 72 n/a _check_interest
1748 0 n/a _disconnect_useless_peer
1779 36 n/a _cancel_old_requests
1830 17 n/a _request_block
1952 65 n/a _send_bitfield
2000 65 n/a _send_extended_handshake
2040 0 n/a _send_keepalive
2071 5 n/a _fill_requests
2132 0 n/a _send_choke
2159 17 n/a _send_unchoke
2202 71 n/a _disconnect
2221 0 Yes as_string
2267 0 n/a CLONE
2282 24 n/a DESTROY
2297 384 n/a _RC4
2299 182388 n/a __ANON__