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