line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Pipe::Tube; |
2
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
18
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
4
|
use Pipe; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
167
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.04'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
52
|
|
|
52
|
0
|
106
|
my ($class, $pipe, @args) = @_; |
11
|
|
|
|
|
|
|
|
12
|
52
|
|
|
|
|
139
|
my $self = bless {}, $class; |
13
|
52
|
|
|
|
|
168
|
$self->{pipe} = $pipe; |
14
|
52
|
|
|
|
|
192
|
$self->init(@args); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# methods to be implemnetd in subclass: |
18
|
|
|
|
|
|
|
sub init { |
19
|
9
|
|
|
9
|
0
|
29
|
return $_[0]; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub run { |
23
|
2
|
|
|
2
|
0
|
6
|
return; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub finish { |
27
|
46
|
|
|
46
|
0
|
101
|
return; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub logger { |
31
|
247
|
|
|
247
|
0
|
347
|
my ($self, $msg) = @_; |
32
|
247
|
|
|
|
|
791
|
Pipe->logger($msg, $self); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|