line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::AsyncSubtest::Event::Detach; |
2
|
30
|
|
|
30
|
|
165955
|
use strict; |
|
30
|
|
|
|
|
59
|
|
|
30
|
|
|
|
|
701
|
|
3
|
30
|
|
|
30
|
|
122
|
use warnings; |
|
30
|
|
|
|
|
60
|
|
|
30
|
|
|
|
|
1089
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000020'; |
6
|
|
|
|
|
|
|
|
7
|
30
|
|
|
30
|
|
154
|
use base 'Test2::Event'; |
|
30
|
|
|
|
|
51
|
|
|
30
|
|
|
|
|
1740
|
|
8
|
30
|
|
|
30
|
|
158
|
use Test2::Util::HashBase qw/id/; |
|
30
|
|
|
|
|
100
|
|
|
30
|
|
|
|
|
141
|
|
9
|
|
|
|
|
|
|
|
10
|
814
|
|
|
814
|
1
|
62039
|
sub no_display { 1 } |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub callback { |
13
|
143
|
|
|
143
|
1
|
4865
|
my $self = shift; |
14
|
143
|
|
|
|
|
412
|
my ($hub) = @_; |
15
|
|
|
|
|
|
|
|
16
|
143
|
|
|
|
|
451
|
my $id = $self->{+ID}; |
17
|
143
|
|
|
|
|
628
|
my $ids = $hub->ast_ids; |
18
|
|
|
|
|
|
|
|
19
|
143
|
100
|
|
|
|
2736
|
unless (defined $ids->{$id}) { |
20
|
1
|
|
|
|
|
6
|
require Test2::Event::Exception; |
21
|
1
|
|
|
|
|
8
|
my $trace = $self->trace; |
22
|
1
|
|
|
|
|
11
|
$hub->send( |
23
|
|
|
|
|
|
|
Test2::Event::Exception->new( |
24
|
|
|
|
|
|
|
trace => $trace, |
25
|
|
|
|
|
|
|
error => "Invalid AsyncSubtest detach ID: $id at " . $trace->debug . "\n", |
26
|
|
|
|
|
|
|
) |
27
|
|
|
|
|
|
|
); |
28
|
1
|
|
|
|
|
170
|
return; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
142
|
100
|
|
|
|
996
|
unless (delete $ids->{$id}) { |
32
|
1
|
|
|
|
|
6
|
require Test2::Event::Exception; |
33
|
1
|
|
|
|
|
3
|
my $trace = $self->trace; |
34
|
1
|
|
|
|
|
9
|
$hub->send( |
35
|
|
|
|
|
|
|
Test2::Event::Exception->new( |
36
|
|
|
|
|
|
|
trace => $trace, |
37
|
|
|
|
|
|
|
error => "AsyncSubtest ID $id is not attached at " . $trace->debug . "\n", |
38
|
|
|
|
|
|
|
) |
39
|
|
|
|
|
|
|
); |
40
|
1
|
|
|
|
|
129
|
return; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |