line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::AsyncSubtest::Hub; |
2
|
79
|
|
|
79
|
|
1448
|
use strict; |
|
79
|
|
|
|
|
193
|
|
|
79
|
|
|
|
|
2152
|
|
3
|
79
|
|
|
79
|
|
419
|
use warnings; |
|
79
|
|
|
|
|
163
|
|
|
79
|
|
|
|
|
3003
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000153'; |
6
|
|
|
|
|
|
|
|
7
|
79
|
|
|
79
|
|
514
|
use base 'Test2::Hub::Subtest'; |
|
79
|
|
|
|
|
187
|
|
|
79
|
|
|
|
|
9007
|
|
8
|
79
|
|
|
79
|
|
580
|
use Test2::Util::HashBase qw/ast_ids ast/; |
|
79
|
|
|
|
|
168
|
|
|
79
|
|
|
|
|
558
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init { |
11
|
838
|
|
|
838
|
0
|
24956
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
838
|
|
|
|
|
4723
|
$self->SUPER::init(); |
14
|
|
|
|
|
|
|
|
15
|
838
|
100
|
|
|
|
171932
|
if (my $format = $self->format) { |
16
|
173
|
50
|
|
|
|
3709
|
my $hide = $format->can('hide_buffered') ? $format->hide_buffered : 1; |
17
|
173
|
50
|
|
|
|
1208
|
$self->format(undef) if $hide; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub inherit { |
22
|
485
|
|
|
485
|
0
|
4729
|
my $self = shift; |
23
|
485
|
|
|
|
|
1285
|
my ($from, %params) = @_; |
24
|
|
|
|
|
|
|
|
25
|
485
|
100
|
|
|
|
1876
|
if (my $ls = $from->{+_LISTENERS}) { |
26
|
381
|
|
|
|
|
770
|
push @{$self->{+_LISTENERS}} => grep { $_->{inherit} } @$ls; |
|
381
|
|
|
|
|
1102
|
|
|
381
|
|
|
|
|
1216
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
485
|
100
|
|
|
|
1600
|
if (my $pfs = $from->{+_PRE_FILTERS}) { |
30
|
1
|
|
|
|
|
15
|
push @{$self->{+_PRE_FILTERS}} => grep { $_->{inherit} } @$pfs; |
|
1
|
|
|
|
|
17
|
|
|
1
|
|
|
|
|
16
|
|
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
485
|
50
|
|
|
|
1989
|
if (my $fs = $from->{+_FILTERS}) { |
34
|
0
|
|
|
|
|
|
push @{$self->{+_FILTERS}} => grep { $_->{inherit} } @$fs; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |