line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Hub::Interceptor; |
2
|
42
|
|
|
42
|
|
1411
|
use strict; |
|
42
|
|
|
|
|
93
|
|
|
42
|
|
|
|
|
1040
|
|
3
|
42
|
|
|
42
|
|
219
|
use warnings; |
|
42
|
|
|
|
|
74
|
|
|
42
|
|
|
|
|
1063
|
|
4
|
|
|
|
|
|
|
|
5
|
42
|
|
|
42
|
|
24508
|
use Test::Stream::Hub::Interceptor::Terminator; |
|
42
|
|
|
|
|
124
|
|
|
42
|
|
|
|
|
1699
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Test::Stream::Hub; |
8
|
|
|
|
|
|
|
use Test::Stream::HashBase( |
9
|
42
|
|
|
|
|
312
|
base => 'Test::Stream::Hub', |
10
|
42
|
|
|
42
|
|
227
|
); |
|
42
|
|
|
|
|
82
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub inherit { |
13
|
138
|
|
|
138
|
1
|
219
|
my $self = shift; |
14
|
138
|
|
|
|
|
279
|
my ($from, %params) = @_; |
15
|
|
|
|
|
|
|
|
16
|
138
|
50
|
66
|
|
|
1276
|
if ($from->{+IPC} && !$self->{+IPC} && !exists($params{ipc})) { |
|
|
|
33
|
|
|
|
|
17
|
0
|
|
|
|
|
0
|
my $ipc = $from->{+IPC}; |
18
|
0
|
|
|
|
|
0
|
$self->{+IPC} = $ipc; |
19
|
0
|
|
|
|
|
0
|
$ipc->add_hub($self->{+HID}); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub terminate { |
24
|
19
|
|
|
19
|
0
|
36
|
my $self = shift; |
25
|
19
|
|
|
|
|
39
|
my ($code) = @_; |
26
|
19
|
|
|
|
|
235
|
die bless(\$code, 'Test::Stream::Hub::Interceptor::Terminator'); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |