line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::AsyncSubtest::Hub; |
2
|
79
|
|
|
79
|
|
1491
|
use strict; |
|
79
|
|
|
|
|
234
|
|
|
79
|
|
|
|
|
2292
|
|
3
|
79
|
|
|
79
|
|
375
|
use warnings; |
|
79
|
|
|
|
|
179
|
|
|
79
|
|
|
|
|
3305
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000155'; |
6
|
|
|
|
|
|
|
|
7
|
79
|
|
|
79
|
|
462
|
use base 'Test2::Hub::Subtest'; |
|
79
|
|
|
|
|
198
|
|
|
79
|
|
|
|
|
9708
|
|
8
|
79
|
|
|
79
|
|
794
|
use Test2::Util::HashBase qw/ast_ids ast/; |
|
79
|
|
|
|
|
223
|
|
|
79
|
|
|
|
|
725
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init { |
11
|
838
|
|
|
838
|
0
|
29813
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
838
|
|
|
|
|
5737
|
$self->SUPER::init(); |
14
|
|
|
|
|
|
|
|
15
|
838
|
100
|
|
|
|
196729
|
if (my $format = $self->format) { |
16
|
173
|
50
|
|
|
|
4164
|
my $hide = $format->can('hide_buffered') ? $format->hide_buffered : 1; |
17
|
173
|
50
|
|
|
|
1250
|
$self->format(undef) if $hide; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub inherit { |
22
|
485
|
|
|
485
|
0
|
5334
|
my $self = shift; |
23
|
485
|
|
|
|
|
1264
|
my ($from, %params) = @_; |
24
|
|
|
|
|
|
|
|
25
|
485
|
100
|
|
|
|
1616
|
if (my $ls = $from->{+_LISTENERS}) { |
26
|
381
|
|
|
|
|
795
|
push @{$self->{+_LISTENERS}} => grep { $_->{inherit} } @$ls; |
|
381
|
|
|
|
|
1168
|
|
|
381
|
|
|
|
|
1111
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
485
|
100
|
|
|
|
1596
|
if (my $pfs = $from->{+_PRE_FILTERS}) { |
30
|
5
|
|
|
|
|
25
|
push @{$self->{+_PRE_FILTERS}} => grep { $_->{inherit} } @$pfs; |
|
5
|
|
|
|
|
40
|
|
|
5
|
|
|
|
|
15
|
|
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
485
|
50
|
|
|
|
2627
|
if (my $fs = $from->{+_FILTERS}) { |
34
|
0
|
|
|
|
|
|
push @{$self->{+_FILTERS}} => grep { $_->{inherit} } @$fs; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |