Scroll to navigation

Test::Valgrind::Parser(3pm) User Contributed Perl Documentation Test::Valgrind::Parser(3pm)


Test::Valgrind::Parser - Base class for Test::Valgrind parsers.


Version 1.19


This class is the base for Test::Valgrind parsers.



    my $tvp = Test::Valgrind::Parser->new;

The parser constructor, called without arguments.

Defaults to "new" in Test::Valgrind::Component.



Called when the $session starts.

Defaults to set "started" in Test::Valgrind::Component.


    my @args = $tvp->args($session, $fh);

Returns the list of parser-specific arguments that are to be passed to the "valgrind" process spawned by the session $session and whose output will be captured by the filehandle $fh.

Defaults to the empty list.


    my $aborted = $tvp->parse($session, $fh);

Parses the output of the "valgrind" process attached to the session $session received through the filehandle $fh. Returns true when the output indicates that "valgrind" has aborted.

This method must be implemented when subclassing.



Called when the $session finishes.

Defaults to clear "started" in Test::Valgrind::Component.


Test::Valgrind, Test::Valgrind::Component, Test::Valgrind::Session.


Vincent Pit, "<perl at>", <>.

You can contact me by mail or on "" (vincent).


Please report any bugs or feature requests to "bug-test-valgrind at", or through the web interface at <>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.


You can find documentation for this module with the perldoc command.

    perldoc Test::Valgrind::Parser


Copyright 2009,2010,2011,2013,2015,2016 Vincent Pit, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2022-02-20 perl v5.34.0