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, nappingundefβ 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 & 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. π
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
- 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