line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Hub::Interceptor; |
2
|
42
|
|
|
42
|
|
768
|
use strict; |
|
42
|
|
|
|
|
86
|
|
|
42
|
|
|
|
|
1073
|
|
3
|
42
|
|
|
42
|
|
213
|
use warnings; |
|
42
|
|
|
|
|
75
|
|
|
42
|
|
|
|
|
1024
|
|
4
|
|
|
|
|
|
|
|
5
|
42
|
|
|
42
|
|
23473
|
use Test::Stream::Hub::Interceptor::Terminator; |
|
42
|
|
|
|
|
115
|
|
|
42
|
|
|
|
|
1633
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Test::Stream::Hub; |
8
|
|
|
|
|
|
|
use Test::Stream::HashBase( |
9
|
42
|
|
|
|
|
315
|
base => 'Test::Stream::Hub', |
10
|
42
|
|
|
42
|
|
225
|
); |
|
42
|
|
|
|
|
84
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub inherit { |
13
|
138
|
|
|
138
|
1
|
280
|
my $self = shift; |
14
|
138
|
|
|
|
|
279
|
my ($from, %params) = @_; |
15
|
|
|
|
|
|
|
|
16
|
138
|
50
|
66
|
|
|
1246
|
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
|
40
|
my $self = shift; |
25
|
19
|
|
|
|
|
37
|
my ($code) = @_; |
26
|
19
|
|
|
|
|
238
|
die bless(\$code, 'Test::Stream::Hub::Interceptor::Terminator'); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |