line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::AsyncSubtest::Hub; |
2
|
32
|
|
|
32
|
|
152501
|
use strict; |
|
32
|
|
|
|
|
66
|
|
|
32
|
|
|
|
|
788
|
|
3
|
32
|
|
|
32
|
|
161
|
use warnings; |
|
32
|
|
|
|
|
60
|
|
|
32
|
|
|
|
|
1110
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000020'; |
6
|
|
|
|
|
|
|
|
7
|
32
|
|
|
32
|
|
141
|
use base 'Test2::Hub::Subtest'; |
|
32
|
|
|
|
|
44
|
|
|
32
|
|
|
|
|
2269
|
|
8
|
32
|
|
|
32
|
|
189
|
use Test2::Util::HashBase qw/ast_ids/; |
|
32
|
|
|
|
|
58
|
|
|
32
|
|
|
|
|
259
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init { |
11
|
217
|
|
|
217
|
0
|
6851
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
217
|
|
|
|
|
2423
|
$self->SUPER::init(); |
14
|
|
|
|
|
|
|
|
15
|
217
|
100
|
|
|
|
56888
|
if (my $format = $self->format) { |
16
|
22
|
50
|
|
|
|
334
|
my $hide = $format->can('hide_buffered') ? $format->hide_buffered : 1; |
17
|
|
|
|
|
|
|
|
18
|
22
|
50
|
|
|
|
109
|
if ($hide) { |
19
|
22
|
|
|
|
|
69
|
$self->format(undef); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
else { |
22
|
0
|
|
|
|
|
0
|
require Test2::AsyncSubtest::Formatter; |
23
|
0
|
|
|
|
|
0
|
$self->format(Test2::AsyncSubtest::Formatter->new(wrap => $format)); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub inherit { |
29
|
60
|
|
|
60
|
0
|
5803
|
my $self = shift; |
30
|
60
|
|
|
|
|
170
|
my ($from, %params) = @_; |
31
|
|
|
|
|
|
|
|
32
|
60
|
100
|
|
|
|
266
|
if (my $ls = $from->{+_LISTENERS}) { |
33
|
28
|
|
|
|
|
181
|
push @{$self->{+_LISTENERS}} => grep { $_->{inherit} } @$ls; |
|
28
|
|
|
|
|
147
|
|
|
28
|
|
|
|
|
133
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
60
|
100
|
|
|
|
289
|
if (my $pfs = $from->{+_PRE_FILTERS}) { |
37
|
2
|
|
|
|
|
10
|
push @{$self->{+_PRE_FILTERS}} => grep { $_->{inherit} } @$pfs; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
21
|
|
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
60
|
50
|
|
|
|
308
|
if (my $fs = $from->{+_FILTERS}) { |
41
|
0
|
|
|
|
|
|
push @{$self->{+_FILTERS}} => grep { $_->{inherit} } @$fs; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |