Test::...mponent(3pm)

✨ NAME ✨

Test::Valgrind::Component β€” bestie, this is the base class for all the Test::Valgrind components πŸ’… it's giving "everyone else inherits from me" main character energy, no cap.


🌸 VERSION 🌸

Version 1.19 β€” vintage but iconic, we stan πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so listen. This class is the blueprint, the moment, the template β€” it's the base for all the other classes that act as components you can start and stop. Like, every component in this whole ecosystem is lowkey built on top of this one. Periodt 🫢


πŸ’– METHODS πŸ’–

πŸŽ€ new

my $tvc = Test::Valgrind::Component->new;

The basic constructor, fr fr. Nothing fancy, just your classic "make me a new one" moment ✨

πŸŽ€ started

$tvc->started($bool);

This one tells you whether the component is running or not, and bestie there are three whole states here, not two, so pay attention πŸ‘‘

  • 1 β€” she's running, living her truth πŸ’…
  • 0 β€” she's stopped, resting, napping
  • undef β€” she was never started at all, like the component never even got out of bed 😭

πŸŽ€ start

$tvc->start;

Marks the component as started β€” and if it was already started? It throws an exception, because you cannot start something twice, that's not the vibe πŸ™ˆ Returns its self object, so you can chain like the icon you are πŸ’–

πŸŽ€ finish

$tvc->finish;

Marks the component as stopped β€” and if it wasn't started? Yeah, it throws an exception again, because you can't finish what never began, that's literally not how this works πŸ’€ Returns its self object too. Symmetry, we love to see it πŸ¦‹


🌈 SEE ALSO 🌈

Test::Valgrind β€” go read that one next, iykyk ⭐


πŸ‘‘ AUTHOR πŸ‘‘

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

You can contact him by mail or on "irc.perl.org" (vincent). Reach out, he's the real one 🫢


πŸ’€ 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. Communication, slay πŸ“¬βœ¨


🧚 SUPPORT 🧚

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

perldoc Test::Valgrind::Component

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, no skips, no crumbs left behind πŸ”₯

signing off β€” this was perl v5.40.1, dated 2025-04-13, from the User Contributed Perl Documentation corner of the internet. stay iconic, drink water, and remember: start before you finish πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from