1 package Test::Valgrind::Parser;
8 Test::Valgrind::Parser - Base class for Test::Valgrind parsers.
16 our $VERSION = '1.13';
20 This class is the base for L<Test::Valgrind> parsers.
24 use base qw<Test::Valgrind::Component Test::Valgrind::Carp>;
30 The parser constructor, called without arguments.
32 Defaults to L<Test::Valgrind::Component/new>.
34 =head2 C<start $session>
36 Called when the C<$session> starts.
38 Defaults to set L<Test::Valgrind::Component/started>.
40 =head2 C<args $session, $fh>
42 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>.
44 Defaults to the empty list.
50 =head2 C<parse $session, $fh>
52 Parse the output of the C<valgrind> process attached to the session C<$session> received through the filehandle C<$fh>.
54 This method must be implemented when subclassing.
60 =head2 C<finish $session>
62 Called when the C<$session> finishes.
64 Defaults to clear L<Test::Valgrind::Component/started>.
68 L<Test::Valgrind>, L<Test::Valgrind::Component>, L<Test::Valgrind::Session>.
72 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
74 You can contact me by mail or on C<irc.perl.org> (vincent).
78 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>.
79 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
83 You can find documentation for this module with the perldoc command.
85 perldoc Test::Valgrind::Parser
87 =head1 COPYRIGHT & LICENSE
89 Copyright 2009,2010,2011 Vincent Pit, all rights reserved.
91 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
95 1; # End of Test::Valgrind::Parser