File Coverage

lib/Net/BitTorrent/Tracker/Base.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 23     23   276 use v5.40;
  23         90  
2 23     23   161 use feature 'class';
  23         36  
  23         5068  
3 23     23   141 no warnings 'experimental::class';
  23         67  
  23         1211  
4 23     23   1478 use Net::BitTorrent::Emitter;
  23         41  
  23         7749  
5             #
6             class Net::BitTorrent::Tracker::Base v2.0.0 : isa(Net::BitTorrent::Emitter) {
7             field $url : param : reader;
8              
9             method perform_announce ( $params, $cb = undef ) {
10             $self->_emit( log => 'Not implemented in base class', level => 'fatal' );
11             }
12              
13             method perform_scrape ( $infohashes, $cb = undef ) {
14             $self->_emit( log => 'Not implemented in base class', level => 'fatal' );
15             }
16             };
17             1;