line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::AsyncSubtest::Hub; |
2
|
79
|
|
|
79
|
|
1563
|
use strict; |
|
79
|
|
|
|
|
191
|
|
|
79
|
|
|
|
|
2371
|
|
3
|
79
|
|
|
79
|
|
718
|
use warnings; |
|
79
|
|
|
|
|
175
|
|
|
79
|
|
|
|
|
3329
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000156'; |
6
|
|
|
|
|
|
|
|
7
|
79
|
|
|
79
|
|
481
|
use base 'Test2::Hub::Subtest'; |
|
79
|
|
|
|
|
185
|
|
|
79
|
|
|
|
|
10446
|
|
8
|
79
|
|
|
79
|
|
570
|
use Test2::Util::HashBase qw/ast_ids ast/; |
|
79
|
|
|
|
|
183
|
|
|
79
|
|
|
|
|
563
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init { |
11
|
847
|
|
|
847
|
0
|
26563
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
847
|
|
|
|
|
4873
|
$self->SUPER::init(); |
14
|
|
|
|
|
|
|
|
15
|
847
|
100
|
|
|
|
192121
|
if (my $format = $self->format) { |
16
|
177
|
50
|
|
|
|
3911
|
my $hide = $format->can('hide_buffered') ? $format->hide_buffered : 1; |
17
|
177
|
50
|
|
|
|
1531
|
$self->format(undef) if $hide; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub inherit { |
22
|
494
|
|
|
494
|
0
|
5172
|
my $self = shift; |
23
|
494
|
|
|
|
|
1172
|
my ($from, %params) = @_; |
24
|
|
|
|
|
|
|
|
25
|
494
|
100
|
|
|
|
1888
|
if (my $ls = $from->{+_LISTENERS}) { |
26
|
386
|
|
|
|
|
706
|
push @{$self->{+_LISTENERS}} => grep { $_->{inherit} } @$ls; |
|
386
|
|
|
|
|
1094
|
|
|
386
|
|
|
|
|
1097
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
494
|
100
|
|
|
|
1560
|
if (my $pfs = $from->{+_PRE_FILTERS}) { |
30
|
1
|
|
|
|
|
15
|
push @{$self->{+_PRE_FILTERS}} => grep { $_->{inherit} } @$pfs; |
|
1
|
|
|
|
|
23
|
|
|
1
|
|
|
|
|
28
|
|
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
494
|
50
|
|
|
|
2093
|
if (my $fs = $from->{+_FILTERS}) { |
34
|
0
|
|
|
|
|
|
push @{$self->{+_FILTERS}} => grep { $_->{inherit} } @$fs; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |