Subroutine Coverage

blib/lib/Net/BitTorrent/Protocol.pm
Criterion Covered Total %
subroutine 70 71 98.5
pod 37 37 100.0


line count pod subroutine
4 12 n/a BEGIN
5 12 n/a BEGIN
6 12 n/a BEGIN
7 12 n/a BEGIN
8 12 n/a BEGIN
9 12 n/a BEGIN
11 12 n/a BEGIN
12 12 n/a BEGIN
61 287 Yes HANDSHAKE
62 33 Yes KEEPALIVE
63 25 Yes CHOKE
64 60 Yes UNCHOKE
65 60 Yes INTERESTED
66 30 Yes NOT_INTERESTED
67 54 Yes HAVE
68 25 Yes BITFIELD
69 36 Yes REQUEST
70 35 Yes PIECE
71 25 Yes CANCEL
72 14 Yes PORT
73 15 Yes SUGGEST
74 45 Yes HAVE_ALL
75 114 Yes HAVE_NONE
76 26 Yes REJECT
77 26 Yes ALLOWED_FAST
78 137 Yes EXTPROTOCOL
81 101 Yes build_handshake
95 10 Yes build_keepalive
96 2 Yes build_choke
97 20 Yes build_unchoke
98 20 Yes build_interested
99 5 Yes build_not_interested
102 43 Yes build_have
112 5 Yes build_bitfield
122 19 Yes build_request
143 17 Yes build_piece
164 13 Yes build_cancel
185 7 Yes build_port
195 9 Yes build_suggest
203 13 Yes build_have_all
204 52 Yes build_have_none
207 13 Yes build_reject
228 9 Yes build_allowed_fast
238 76 Yes build_extended
272 275 Yes parse_packet
315 71 n/a _parse_handshake
331 10 n/a _parse_keepalive
332 2 n/a _parse_choke
333 20 n/a _parse_unchoke
334 20 n/a _parse_interested
335 4 n/a _parse_not_interested
338 34 n/a _parse_have
348 7 n/a _parse_bitfield
358 13 n/a _parse_request
371 12 n/a _parse_piece
384 7 n/a _parse_cancel
397 10 n/a _parse_port
407 11 n/a _parse_suggest
415 11 n/a _parse_have_all
416 41 n/a _parse_have_none
419 8 n/a _parse_reject
432 11 n/a _parse_allowed_fast
442 54 n/a _parse_extended
449 0 n/a _build_dht_query_ping
471 18 n/a _build_dht_query_announce
512 47 n/a _build_dht_query_find_node
541 34 n/a _build_dht_query_get_peers
568 18 n/a _build_dht_reply_ping
574 47 n/a _build_dht_reply_find_node
585 26 n/a _build_dht_reply_get_peers
596 8 n/a _build_dht_reply_values