line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Event::Exception; |
2
|
246
|
|
|
246
|
|
2113
|
use strict; |
|
246
|
|
|
|
|
546
|
|
|
246
|
|
|
|
|
7410
|
|
3
|
246
|
|
|
246
|
|
1275
|
use warnings; |
|
246
|
|
|
|
|
514
|
|
|
246
|
|
|
|
|
15025
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.302180'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
246
|
|
|
246
|
|
1576
|
BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) } |
|
246
|
|
|
|
|
11049
|
|
9
|
246
|
|
|
246
|
|
1790
|
use Test2::Util::HashBase qw{error}; |
|
246
|
|
|
|
|
560
|
|
|
246
|
|
|
|
|
1685
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub init { |
12
|
2
|
|
|
2
|
0
|
5
|
my $self = shift; |
13
|
2
|
|
|
|
|
10
|
$self->{+ERROR} = "$self->{+ERROR}"; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
2
|
1
|
15
|
sub causes_fail { 1 } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub summary { |
19
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
20
|
1
|
|
|
|
|
8
|
chomp(my $msg = "Exception: " . $self->{+ERROR}); |
21
|
1
|
|
|
|
|
6
|
return $msg; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
1
|
5
|
sub diagnostics { 1 } |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub facet_data { |
27
|
2
|
|
|
2
|
1
|
4
|
my $self = shift; |
28
|
2
|
|
|
|
|
12
|
my $out = $self->common_facet_data; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
$out->{errors} = [ |
31
|
|
|
|
|
|
|
{ |
32
|
|
|
|
|
|
|
tag => 'ERROR', |
33
|
|
|
|
|
|
|
fail => 1, |
34
|
2
|
|
|
|
|
12
|
details => $self->{+ERROR}, |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
]; |
37
|
|
|
|
|
|
|
|
38
|
2
|
|
|
|
|
9
|
return $out; |
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |