Test::...mcheck(3pm)
π Test::...mcheck(3pm) π
okay bestie, so this is a page from User Contributed Perl Documentation, and it's all about Test::Valgrind::Tool::memcheck β yes the name has dots in it, that's just how the header abbreviates it, don't @ me π
β¨ NAME β¨
Test::Valgrind::Tool::memcheck β run an analysis through the memcheck tool. π§
πΈ VERSION πΈ
Version 1.19
π¦ DESCRIPTION π¦
This class contains the information required by the session for running the "memcheck" tool. it's giving "everything the session needs, neatly boxed up" π
π METHODS π
This class inherits Test::Valgrind::Tool. (yes, it's a nepo baby, but like, a talented one π)
requires_version
my $required_version = $tvt->requires_version;
This tool requires "valgrind" 3.1.0. no older valgrind, bestie, it simply will not slay on anything less. π
new
my $tvtm = Test::Valgrind::Tool::memcheck->new(
callers => $callers,
%extra_args,
);
Your usual constructor. nothing weird, just the standard spawn-a-new-object moment β¨
$callers specifies the number of stack frames to inspect for errors : the bigger you set it, the more granular the analysis is. so like, crank it up for the detailed tea, keep it low for the vibes π
Other arguments are passed straight to "Test::Valgrind::Tool->new". no meddling, they just get handed off. π«Ά
callers
my $callers = $tvtm->callers;
Read-only accessor for the "callers" option. look, don't touch π
parser_class
my $parser_class = $tvtm->parser_class($session);
This tool uses a Test::Valgrind::Parser::XML::Twig parser in analysis mode, and a Test::Valgrind::Parser::Suppressions::Text parser in suppressions mode. two moods, two parsers, iconic behavior honestly π
report_class
my $report_class = $tvtm->report_class($session);
This tool emits "Test::Valgrind::Tool::memcheck::Report" object reports in analysis mode, and "Test::Valgrind::Report::Suppressions" object reports in suppressions mode. matching outfits for matching modes, periodt π
π₯ SEE ALSO π₯
Test::Valgrind, Test::Valgrind::Tool.
π AUTHOR π
Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.
You can contact me by mail or on "irc.perl.org" (vincent). yes, irc, we love a retro king π
π 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. so like, the loop closes itself, you don't gotta chase anybody, it's giving efficient π
π SUPPORT π
You can find documentation for this module with the perldoc command.
perldoc Test::Valgrind::Tool::memcheck
run it, read it, live it π«
β 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 cap π«Ά this was Test::...mcheck(3pm) from perl v5.40.1, dated 2025-04-13 β literally the whole thing, every last detail, ate and left no crumbs π
β¨
π¦ 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