line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Hub::Interceptor; |
2
|
54
|
|
|
54
|
|
458
|
use strict; |
|
54
|
|
|
|
|
47
|
|
|
54
|
|
|
|
|
1190
|
|
3
|
54
|
|
|
54
|
|
143
|
use warnings; |
|
54
|
|
|
|
|
44
|
|
|
54
|
|
|
|
|
1555
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000042'; |
6
|
|
|
|
|
|
|
|
7
|
54
|
|
|
54
|
|
17303
|
use Test2::Hub::Interceptor::Terminator(); |
|
54
|
|
|
|
|
71
|
|
|
54
|
|
|
|
|
778
|
|
8
|
|
|
|
|
|
|
|
9
|
54
|
|
|
54
|
|
160
|
use base 'Test2::Hub'; |
|
54
|
|
|
|
|
50
|
|
|
54
|
|
|
|
|
2844
|
|
10
|
54
|
|
|
54
|
|
209
|
use Test2::Util::HashBase; |
|
54
|
|
|
|
|
47
|
|
|
54
|
|
|
|
|
217
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub inherit { |
13
|
13
|
|
|
13
|
0
|
11
|
my $self = shift; |
14
|
13
|
|
|
|
|
15
|
my ($from, %params) = @_; |
15
|
|
|
|
|
|
|
|
16
|
13
|
50
|
66
|
|
|
69
|
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
|
21
|
my $self = shift; |
25
|
3
|
|
|
|
|
4
|
my ($code) = @_; |
26
|
3
|
|
|
|
|
24
|
die bless(\$code, 'Test2::Hub::Interceptor::Terminator'); |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |