| lib/Net/BitTorrent/Protocol/HandshakeOnly.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 11 | 11 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 4 | 4 | 100.0 |
| pod | n/a | ||
| total | 15 | 15 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | 20 | 20 | 224313 | use v5.40; | |||
| 20 | 120 | ||||||
| 2 | 20 | 20 | 175 | use feature 'class'; | |||
| 20 | 56 | ||||||
| 20 | 3471 | ||||||
| 3 | 20 | 20 | 166 | no warnings 'experimental::class'; | |||
| 20 | 52 | ||||||
| 20 | 2629 | ||||||
| 4 | 20 | 20 | 11182 | class Net::BitTorrent::Protocol::HandshakeOnly v2.0.0 : isa(Net::BitTorrent::Protocol::BEP03) { | |||
| 20 | 60 | ||||||
| 20 | 4009 | ||||||
| 5 | field $on_handshake_cb : param; | ||||||
| 6 | ADJUST { | ||||||
| 7 | $self->on( handshake => sub ( $self, $ih, $id ) { $on_handshake_cb->( $ih, $id ) } ); | ||||||
| 8 | } | ||||||
| 9 | } 1; |