blib/lib/Net/BitTorrent/Protocol/HandshakeOnly.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 17 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use v5.40;
2 use feature 'class';
3 no warnings 'experimental::class';
4 class Net::BitTorrent::Protocol::HandshakeOnly v2.0.0 : isa(Net::BitTorrent::Protocol::BEP03) {
5 field $on_handshake_cb : param;
6 ADJUST {
7 $self->on( handshake => sub ( $self, $ih, $id ) { $on_handshake_cb->( $ih, $id ) } );
8 }
9 } 1;