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 $action contains '::', 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::Valgrind
  • Test::Valgrind::Component
  • Test::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 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