line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::AsyncSubtest::Hub; |
2
|
32
|
|
|
32
|
|
97534
|
use strict; |
|
32
|
|
|
|
|
40
|
|
|
32
|
|
|
|
|
759
|
|
3
|
32
|
|
|
32
|
|
105
|
use warnings; |
|
32
|
|
|
|
|
37
|
|
|
32
|
|
|
|
|
1050
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000018'; |
6
|
|
|
|
|
|
|
|
7
|
32
|
|
|
32
|
|
101
|
use base 'Test2::Hub::Subtest'; |
|
32
|
|
|
|
|
34
|
|
|
32
|
|
|
|
|
2721
|
|
8
|
32
|
|
|
32
|
|
124
|
use Test2::Util::HashBase qw/ast_ids/; |
|
32
|
|
|
|
|
40
|
|
|
32
|
|
|
|
|
225
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init { |
11
|
217
|
|
|
217
|
0
|
3020
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
217
|
|
|
|
|
1253
|
$self->SUPER::init(); |
14
|
|
|
|
|
|
|
|
15
|
217
|
100
|
|
|
|
40842
|
if (my $format = $self->format) { |
16
|
22
|
50
|
|
|
|
263
|
my $hide = $format->can('hide_buffered') ? $format->hide_buffered : 1; |
17
|
22
|
50
|
|
|
|
111
|
$self->format(undef) if $hide; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub inherit { |
22
|
60
|
|
|
60
|
0
|
5571
|
my $self = shift; |
23
|
60
|
|
|
|
|
164
|
my ($from, %params) = @_; |
24
|
|
|
|
|
|
|
|
25
|
60
|
100
|
|
|
|
327
|
if (my $ls = $from->{+_LISTENERS}) { |
26
|
28
|
|
|
|
|
82
|
push @{$self->{+_LISTENERS}} => grep { $_->{inherit} } @$ls; |
|
28
|
|
|
|
|
141
|
|
|
28
|
|
|
|
|
261
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
60
|
100
|
|
|
|
780
|
if (my $pfs = $from->{+_PRE_FILTERS}) { |
30
|
2
|
|
|
|
|
11
|
push @{$self->{+_PRE_FILTERS}} => grep { $_->{inherit} } @$pfs; |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
7
|
|
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
60
|
50
|
|
|
|
279
|
if (my $fs = $from->{+_FILTERS}) { |
34
|
0
|
|
|
|
|
|
push @{$self->{+_FILTERS}} => grep { $_->{inherit} } @$fs; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |