Debian Codegraph @

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

raw
1 # subclass for testing customizing & subclassing
2
3 package MyResultFactory;
4
5 use strict;
6 use warnings;
7
8 use MyResult;
9
10 use base qw( TAP::Parser::ResultFactory MyCustom );
11
12 sub make_result {
13 my $class = shift;
14
15 # I know, this is not really being initialized, but
16 # for consistency's sake, deal with it :)
17 $main::INIT{$class}++;
18 return MyResult->new(@_);
19 }
20
21 1;