line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test2::Event::ParserSelect; |
2
|
29
|
|
|
29
|
|
378
|
use strict; |
|
29
|
|
|
|
|
28
|
|
|
29
|
|
|
|
|
618
|
|
3
|
29
|
|
|
29
|
|
65
|
use warnings; |
|
29
|
|
|
|
|
27
|
|
|
29
|
|
|
|
|
1246
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.000013'; |
6
|
|
|
|
|
|
|
|
7
|
29
|
|
|
29
|
|
113
|
BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) } |
|
29
|
|
|
|
|
649
|
|
8
|
29
|
|
|
29
|
|
87
|
use Test2::Util::HashBase qw/parser_class/; |
|
29
|
|
|
|
|
32
|
|
|
29
|
|
|
|
|
169
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub init { |
11
|
613
|
|
|
613
|
0
|
9033
|
my $self = shift; |
12
|
613
|
50
|
|
|
|
2780
|
defined $self->{+PARSER_CLASS} or $self->trace->throw("'parser_class' is a required attribute"); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
0
|
1
|
|
sub summary { 'Selected ' . $_[0]->{+PARSER_CLASS} . ' for parsing' } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__END__ |