1 package Test::Valgrind::Parser;
8 Test::Valgrind::Parser - Base class for Test::Valgrind parsers.
16 our $VERSION = '1.15';
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 $tvp->parse($session, $fh);
60 Parse the output of the C<valgrind> process attached to the session C<$session> received through the filehandle C<$fh>.
62 This method must be implemented when subclassing.
70 $tvp->finish($session);
72 Called when the C<$session> finishes.
74 Defaults to clear L<Test::Valgrind::Component/started>.
78 L<Test::Valgrind>, L<Test::Valgrind::Component>, L<Test::Valgrind::Session>.
82 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
84 You can contact me by mail or on C<irc.perl.org> (vincent).
88 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>.
89 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
93 You can find documentation for this module with the perldoc command.
95 perldoc Test::Valgrind::Parser
97 =head1 COPYRIGHT & LICENSE
99 Copyright 2009,2010,2011,2013,2015 Vincent Pit, all rights reserved.
101 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
105 1; # End of Test::Valgrind::Parser