line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::AsyncSubtest::Hub; |
2
|
32
|
|
|
32
|
|
130165
|
use strict; |
|
32
|
|
|
|
|
61
|
|
|
32
|
|
|
|
|
765
|
|
3
|
32
|
|
|
32
|
|
132
|
use warnings; |
|
32
|
|
|
|
|
60
|
|
|
32
|
|
|
|
|
1092
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000019'; # TRIAL |
6
|
|
|
|
|
|
|
|
7
|
32
|
|
|
32
|
|
155
|
use base 'Test2::Hub::Subtest'; |
|
32
|
|
|
|
|
67
|
|
|
32
|
|
|
|
|
2294
|
|
8
|
32
|
|
|
32
|
|
172
|
use Test2::Util::HashBase qw/ast_ids/; |
|
32
|
|
|
|
|
45
|
|
|
32
|
|
|
|
|
288
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init { |
11
|
217
|
|
|
217
|
0
|
3967
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
217
|
|
|
|
|
1694
|
$self->SUPER::init(); |
14
|
|
|
|
|
|
|
|
15
|
217
|
100
|
|
|
|
38509
|
if (my $format = $self->format) { |
16
|
22
|
50
|
|
|
|
344
|
my $hide = $format->can('hide_buffered') ? $format->hide_buffered : 1; |
17
|
|
|
|
|
|
|
|
18
|
22
|
50
|
|
|
|
114
|
if ($hide) { |
19
|
22
|
|
|
|
|
64
|
$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
|
4603
|
my $self = shift; |
30
|
60
|
|
|
|
|
165
|
my ($from, %params) = @_; |
31
|
|
|
|
|
|
|
|
32
|
60
|
100
|
|
|
|
193
|
if (my $ls = $from->{+_LISTENERS}) { |
33
|
28
|
|
|
|
|
105
|
push @{$self->{+_LISTENERS}} => grep { $_->{inherit} } @$ls; |
|
28
|
|
|
|
|
198
|
|
|
28
|
|
|
|
|
105
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
60
|
100
|
|
|
|
192
|
if (my $pfs = $from->{+_PRE_FILTERS}) { |
37
|
2
|
|
|
|
|
7
|
push @{$self->{+_PRE_FILTERS}} => grep { $_->{inherit} } @$pfs; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
6
|
|
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
60
|
50
|
|
|
|
262
|
if (my $fs = $from->{+_FILTERS}) { |
41
|
0
|
|
|
|
|
|
push @{$self->{+_FILTERS}} => grep { $_->{inherit} } @$fs; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__END__ |