line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Event::Pass; |
2
|
246
|
|
|
246
|
|
1967
|
use strict; |
|
246
|
|
|
|
|
587
|
|
|
246
|
|
|
|
|
7733
|
|
3
|
246
|
|
|
246
|
|
1406
|
use warnings; |
|
246
|
|
|
|
|
528
|
|
|
246
|
|
|
|
|
10275
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.302180'; |
6
|
|
|
|
|
|
|
|
7
|
246
|
|
|
246
|
|
1536
|
use Test2::EventFacet::Info; |
|
246
|
|
|
|
|
585
|
|
|
246
|
|
|
|
|
17105
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
BEGIN { |
10
|
246
|
|
|
246
|
|
1811
|
require Test2::Event; |
11
|
246
|
|
|
|
|
4686
|
our @ISA = qw(Test2::Event); |
12
|
246
|
|
|
|
|
8669
|
*META_KEY = \&Test2::Util::ExternalMeta::META_KEY; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
246
|
|
|
246
|
|
1692
|
use Test2::Util::HashBase qw{ -name -info }; |
|
246
|
|
|
|
|
612
|
|
|
246
|
|
|
|
|
1936
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
############## |
18
|
|
|
|
|
|
|
# Old API |
19
|
1
|
|
|
1
|
1
|
15
|
sub summary { "pass" } |
20
|
1
|
|
|
1
|
1
|
6
|
sub increments_count { 1 } |
21
|
2
|
|
|
2
|
1
|
17
|
sub causes_fail { 0 } |
22
|
1
|
|
|
1
|
1
|
4
|
sub diagnostics { 0 } |
23
|
1
|
|
|
1
|
1
|
14
|
sub no_display { 0 } |
24
|
1
|
|
|
1
|
1
|
5
|
sub subtest_id { undef } |
25
|
1
|
|
|
1
|
1
|
5
|
sub terminate { () } |
26
|
590
|
|
|
590
|
1
|
1678
|
sub global { () } |
27
|
1
|
|
|
1
|
1
|
4
|
sub sets_plan { () } |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
############## |
30
|
|
|
|
|
|
|
# New API |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub add_info { |
33
|
1
|
|
|
1
|
0
|
3
|
my $self = shift; |
34
|
|
|
|
|
|
|
|
35
|
1
|
|
|
|
|
5
|
for my $in (@_) { |
36
|
1
|
50
|
|
|
|
6
|
$in = {%$in} if ref($in) ne 'ARRAY'; |
37
|
1
|
|
|
|
|
10
|
$in = Test2::EventFacet::Info->new($in); |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
|
|
2
|
push @{$self->{+INFO}} => $in; |
|
1
|
|
|
|
|
5
|
|
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub facet_data { |
44
|
1590
|
|
|
1590
|
1
|
2188
|
my $self = shift; |
45
|
|
|
|
|
|
|
|
46
|
1590
|
|
|
|
|
3407
|
my $out = $self->common_facet_data; |
47
|
|
|
|
|
|
|
|
48
|
1590
|
|
|
|
|
2844
|
$out->{about}->{details} = 'pass'; |
49
|
|
|
|
|
|
|
|
50
|
1590
|
|
|
|
|
3927
|
$out->{assert} = {pass => 1, details => $self->{+NAME}}; |
51
|
|
|
|
|
|
|
|
52
|
1590
|
100
|
|
|
|
2985
|
$out->{info} = [map {{ %{$_} }} @{$self->{+INFO}}] if $self->{+INFO}; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
3
|
|
53
|
|
|
|
|
|
|
|
54
|
1590
|
|
|
|
|
3579
|
return $out; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
__END__ |