Debian Codegraph @

cpan/Test-Harness/t/lib/EmptyParser.pm

raw
1 package EmptyParser;
2
3 use strict;
4 use warnings;
5
6 use base qw(TAP::Parser);
7
8 sub _initialize {
9 shift->_set_defaults;
10 }
11
12 # this should really be in TAP::Parser itself...
13 sub _set_defaults {
14 my $self = shift;
15
16 for my $key (qw( grammar_class result_factory_class )) {
17 my $default_method = "_default_$key";
18 $self->$key( $self->$default_method() );
19 }
20
21 return $self;
22 }
23
24 1;