File Coverage

blib/lib/LaBrea/NetIO.pm
Criterion Covered Total %
statement 55 58 94.8
branch 19 26 73.0
condition 5 11 45.4
subroutine 11 13 84.6
pod 3 4 75.0
total 93 112 83.0


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2             package LaBrea::NetIO;
3 7     7   7424 use strict;
  7         14  
  7         245  
4             #use diagnostics;
5 7     7   40 use vars qw($VERSION @ISA @EXPORT_OK );
  7         14  
  7         890  
6              
7             $VERSION = do { my @r = (q$Revision: 0.01 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
8              
9 7     7   6767 use Socket;
  7         36998  
  7         4545  
10 7     7   6471 use AutoLoader 'AUTOLOAD';
  7         11067  
  7         43  
11             require Exporter;
12             @ISA = qw(Exporter);
13              
14             @EXPORT_OK = (@Socket::EXPORT, @Socket::EXPORT_OK, qw(
15             TARPIT_PORT
16             open_listen_sock
17             open_tcp
18             alarm_wrap
19             daemon_handler
20             read_daemon
21             fetch
22             reap_kids
23             set_so_linger
24             ));
25              
26             # autoload declarations
27              
28             sub open_listen_sock;
29             sub open_tcp;
30             sub alarm_wrap;
31             sub daemon_handler;
32             sub fetch;
33             sub read_daemon;
34             sub reap_kids;
35             sub set_so_linger;
36 2     2 0 430 sub TARPIT_PORT { 8686; };
37             #
38             sub _fetch;
39             sub _want_daemon;
40 0     0   0 sub DESTROY {};
41              
42             1;
43             __END__