Test::...Version(3pm)

πŸ’– Test::...Version(3pm) πŸ’–

okay bestie, gather round, because we're looking at Test::Valgrind::Version β€” the User Contributed Perl Documentation edition, no less. it's the object class that handles valgrind versions, and honestly? it's giving tiny-but-mighty. πŸ‘‘


✨ NAME ✨

Test::Valgrind::Version β€” the object class for valgrind versions, periodt.


🌸 VERSION 🌸

Version 1.19. that's the one, that's the number, don't come for me. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this class exists to parse, store and compare valgrind versions. that's it. that's the whole job. it does it and it does it well. ✨


πŸŽ€ METHODS πŸŽ€

πŸ’œ new

my $vg_version = Test::Valgrind::Version->new(
 command_output => qx{valgrind --version},
);

my $vg_version = Test::Valgrind::Version->new(
 string => '1.2.3',
);

this makes you a brand-new Test::Valgrind::Version object representing a valgrind version, and you can feed it from one of these two sources:

  • if the command_output option is passed in, then new will try to parse it as if it were the output of valgrind --version. like, literally that exact output. 🫢
  • otherwise, you must pass the string option, and its value gets parsed as a 'dotted-integer' version number. cute, classic, iconic.
heads up bestie: an exception is raised if the version number can't be figured out from whatever data you handed over. so don't be vague with it. 😭

πŸ”₯ OVERLOADING πŸ”₯

this class overloads the numeric comparison operators β€” <=>, <, <=, ==, => and > β€” plus stringification. so you can compare versions like they're numbers, and stringify them like they're strings, and it just works. main character energy fr fr. πŸ’…


🌈 SEE ALSO 🌈

  • Test::Valgrind. that's the one. go look. πŸ‘€

πŸ‘‘ AUTHOR πŸ‘‘

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

you can contact him by mail, or on irc.perl.org (where he goes by vincent). say hi, he's lovely. 🫢


πŸ’€ 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'll get notified, and then you'll automatically get notified about progress on your bug as he makes changes. the circle of life, but for bug reports. πŸ¦‹


πŸ“ SUPPORT πŸ“

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

perldoc Test::Valgrind::Component

(yes, that's what the page says. write it down exactly like that. iykyk. πŸ™ˆ)


Copyright 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, open source, we love to see it. πŸ’–


and that's a wrap, bestie! this little page came to you courtesy of perl v5.40.1, dated 2025-04-13, as Test::...Version(3pm) πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from