Branch Coverage

lib/Net/BitTorrent/Protocol/BEP15.pm
Criterion Covered Total %
branch 52 52 100.0


line true false branch
99 1 1 $args->{'ip'} =~ /\./ ? :
2 6 defined $args->{'ip'} ? :
101 2 6 if defined $args->{'authentication'}
102 2 6 if defined $args->{'request_string'}
104 2 6 if (defined $args->{'authentication'})
113 2 6 if defined $args->{'request_string'}
179 1 4 if (length $data < 16)
183 1 3 if ($cid != $CONNECTION_ID)
186 1 2 if ($action != $CONNECT)
196 1 3 if (length $data < 16)
200 1 2 if ($action != $CONNECT)
210 1 5 if (length $data < 16)
225 1 4 if ($action != $ANNOUNCE)
245 2 2 if $ext & 1
248 2 2 if $ext & 2
256 1 3 if $action != $ANNOUNCE
270 1 2 if $action != $SCRAPE
281 1 3 if $action != $SCRAPE
296 1 2 if $action != $ERROR
306 1 3 if $action == $CONNECT
307 1 2 if $action == $ANNOUNCE
308 1 1 if $action == $SCRAPE
316 1 4 if $action == $CONNECT
317 1 3 if $action == $ANNOUNCE
318 1 2 if $action == $SCRAPE
319 1 1 if $action == $ERROR