1 package Test::Valgrind::Parser;
8 Test::Valgrind::Parser - Base class for Test::Valgrind parsers.
16 our $VERSION = '1.18';
20 This class is the base for L<Test::Valgrind> parsers.
24 use base qw<Test::Valgrind::Component Test::Valgrind::Carp>;
30 my $tvp = Test::Valgrind::Parser->new;
32 The parser constructor, called without arguments.
34 Defaults to L<Test::Valgrind::Component/new>.
38 $tvp->start($session);
40 Called when the C<$session> starts.
42 Defaults to set L<Test::Valgrind::Component/started>.
46 my @args = $tvp->args($session, $fh);
48 Returns the list of parser-specific arguments that are to be passed to the C<valgrind> process spawned by the session C<$session> and whose output will be captured by the filehandle C<$fh>.
50 Defaults to the empty list.
58 my $aborted = $tvp->parse($session, $fh);
60 Parses the output of the C<valgrind> process attached to the session C<$session> received through the filehandle C<$fh>.
61 Returns true when the output indicates that C<valgrind> has aborted.
63 This method must be implemented when subclassing.
71 $tvp->finish($session);
73 Called when the C<$session> finishes.
75 Defaults to clear L<Test::Valgrind::Component/started>.
79 L<Test::Valgrind>, L<Test::Valgrind::Component>, L<Test::Valgrind::Session>.
83 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
85 You can contact me by mail or on C<irc.perl.org> (vincent).
89 Please report any bugs or feature requests to C<bug-test-valgrind at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>.
90 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
94 You can find documentation for this module with the perldoc command.
96 perldoc Test::Valgrind::Parser
98 =head1 COPYRIGHT & LICENSE
100 Copyright 2009,2010,2011,2013,2015 Vincent Pit, all rights reserved.
102 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
106 1; # End of Test::Valgrind::Parser