Test::...Action(3pm)
π Test::Valgrind::Action π
okay so bestie, you found the manual page for Test::Valgrind::Action (that's the 3pm one, Perl docs, you know the vibe) and honestly? it's giving base class energy and we're obsessed π
β¨ VERSION β¨
Version 1.19 β periodt π
πΈ DESCRIPTION πΈ
So like, this class is the base for all the Test::Valgrind actions. The blueprint. The blueprint-est blueprint. π¦
And what's an action, you ask? Actions get called every single time a tool encounters an error, and then they decide what to do with it. Like, passing tests, failing tests, whatever the moment calls for. It's giving main character decision-making, fr fr. π
π§ METHODS π§
π new
my $tva = Test::Valgrind::Action->new(action => $action);
Creates a brand new action object of type $action, and the way it does that is: it requires the module and redispatches the method call to it. Which module though? π
- if
$actioncontains'::', it goes to the module literally named$action - otherwise it goes to
Test::Valgrind::Action::$action
And heads up bestie: the class that $action represents must inherit this class. Non-negotiable. That's the rule. π
π do_suppressions
Tells you if the action wants valgrind to run in suppression-generating mode or in analysis mode. Two modes, one function, iconic behavior honestly. β¨
β start
$tva->start($session);
Called when the $session starts. That's it, that's the moment. π
Defaults to setting started in Test::Valgrind::Component.
π report
$tva->report($session, $report);
Invoked every single time the valgrind process attached to the $session spots an error. And $report? It's a Test::Valgrind::Report object describing that error. Receipts included, no cap. π
Defaults to checking started in Test::Valgrind::Component.
π abort
$tva->abort($session, $msg);
Triggered when the $session has to interrupt the action. The drama. The tension. π
Defaults to croak. So yeah, it's gonna yell at you. That's the default, bestie, we don't make the rules. πΈ
π«Ά finish
$tva->finish($session);
Called when the $session finishes. Cleanup era. π§Ή
Defaults to clearing started in Test::Valgrind::Component.
π status
$tva->status($session);
Returns the status code corresponding to the last run of the action. The final answer. The vibe check result. π
π₯ SEE ALSO π₯
Test::ValgrindTest::Valgrind::ComponentTest::Valgrind::Session
π AUTHOR π
Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
You can contact me by mail or on "irc.perl.org" (vincent). Slide into the IRC, iykyk π«Ά
π¦ 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>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. Like a little notification chain, cute right? π
πΈ SUPPORT πΈ
You can find documentation for this module with the perldoc command.
perldoc Test::Valgrind::Action
Go read it, bestie, it's right there. π
π COPYRIGHT & LICENSE π
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. Slay, legally speaking. βοΈβ¨
ok that's the whole page, no notes, every last detail is in there because I would never do you dirty like that π
and that's a wrap on Test::...Action(3pm) β this one's from perl v5.40.1, dated 2025-04-13, mwah, go forth and valgrind responsibly ππ
π¦ where this page comes from
- debian trixie: libtest-valgrind-perl 1.19-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-valgrind-perl 1.19-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-valgrind-perl 1.19-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms