Test::...Parser(3pm)

✨ Test::...Parser πŸ’…

okay so bestie, welcome to the Perl User Contributed Documentation corner of the internet 🫢 this one's Test::...Parser from the 3pm manual, and it's giving base class energy in the most iconic way.


🌸 NAME 🌸

Test::Valgrind::Parser β€” it's the base class for Test::Valgrind parsers. that's the whole vibe, no cap πŸ’–


πŸŽ€ VERSION πŸŽ€

Version 1.19 ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this class is literally the base for Test::Valgrind parsers. everything else builds on top of it, she's the blueprint fr fr πŸ‘‘


πŸ’œ METHODS πŸ’œ

πŸ’– new

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

the parser constructor, and you call it without any arguments β€” she doesn't need them, she's low maintenance πŸ’…

defaults to new in Test::Valgrind::Component.


πŸ’– start

$tvp->start($session);

called when the $session starts 🌱

defaults to setting started in Test::Valgrind::Component.


πŸ’– args

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

returns the list of parser-specific arguments that get passed to the valgrind process that the session $session spawned, and whose output is gonna be captured by the filehandle $fh πŸ“₯

defaults to the empty list β€” she says nothing, iconic silence 🀫


πŸ’– parse

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

this one parses the output of the valgrind process attached to the session $session, which it receives through the filehandle $fh πŸ” returns true when the output indicates that valgrind has aborted πŸ’€

⚠️ bestie listen: this method must be implemented when subclassing. like, you have to do it. there's no default. no skipping. periodt πŸ™ˆ

πŸ’– finish

$tvp->finish($session);

called when the $session finishes 🏁

defaults to clearing started in Test::Valgrind::Component.


🌈 SEE ALSO 🌈

Test::Valgrind, Test::Valgrind::Component, Test::Valgrind::Session β€” go read them, they're all connected, iykyk πŸ’«


πŸ‘‘ AUTHOR πŸ‘‘

Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.

you can contact him by mail or on irc.perl.org (vincent) β€” he's around, fr fr πŸ“¬


πŸ› BUGS πŸ›

please report any bugs or feature requests to "bug-test-valgrind at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>. he will be notified, and then you'll automatically be notified of progress on your bug as he makes changes πŸ’Œ


🫢 SUPPORT 🫢

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.


and that's the whole page bestie, you ate that πŸŽ€βœ¨

cute lil sign-off: this was rendered by perl v5.40.1 on 2025-04-13, and yes, the manual page itself is also named Test::...Parser(3pm) β€” she's got main character energy in the footer too πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from