line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Hub::Interceptor; |
2
|
57
|
|
|
57
|
|
498
|
use strict; |
|
57
|
|
|
|
|
54
|
|
|
57
|
|
|
|
|
1257
|
|
3
|
57
|
|
|
57
|
|
164
|
use warnings; |
|
57
|
|
|
|
|
48
|
|
|
57
|
|
|
|
|
1715
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000044'; |
6
|
|
|
|
|
|
|
|
7
|
57
|
|
|
57
|
|
18492
|
use Test2::Hub::Interceptor::Terminator(); |
|
57
|
|
|
|
|
74
|
|
|
57
|
|
|
|
|
820
|
|
8
|
|
|
|
|
|
|
|
9
|
57
|
|
|
57
|
|
175
|
use base 'Test2::Hub'; |
|
57
|
|
|
|
|
56
|
|
|
57
|
|
|
|
|
3182
|
|
10
|
57
|
|
|
57
|
|
225
|
use Test2::Util::HashBase; |
|
57
|
|
|
|
|
54
|
|
|
57
|
|
|
|
|
260
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub inherit { |
13
|
13
|
|
|
13
|
0
|
12
|
my $self = shift; |
14
|
13
|
|
|
|
|
14
|
my ($from, %params) = @_; |
15
|
|
|
|
|
|
|
|
16
|
13
|
50
|
66
|
|
|
62
|
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
|
3
|
|
|
3
|
0
|
16
|
my $self = shift; |
25
|
3
|
|
|
|
|
3
|
my ($code) = @_; |
26
|
3
|
|
|
|
|
24
|
die bless(\$code, 'Test2::Hub::Interceptor::Terminator'); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |