This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Test-Harness to CPAN version 3.21
[perl5.git] / cpan / Test-Harness / t / lib / MyPerlSourceHandler.pm
CommitLineData
6d313664
CBW
1# subclass for testing customizing & subclassing
2
3package MyPerlSourceHandler;
4
5use strict;
6use vars '@ISA';
7
8use MyCustom;
9use TAP::Parser::IteratorFactory;
10use TAP::Parser::SourceHandler::Perl;
11
12@ISA = qw( TAP::Parser::SourceHandler::Perl MyCustom );
13
14TAP::Parser::IteratorFactory->register_handler(__PACKAGE__);
15
16sub can_handle {
17 my $class = shift;
18 my $vote = $class->SUPER::can_handle(@_);
19 $vote += 0.1 if $vote > 0; # steal the Perl handler's vote
20 return $vote;
21}
22
231;
24