Test::...::Util(3pm)

πŸ’– NAME πŸ’–

Test::Valgrind::Util β€” it's the little utility-routine toolbox for Test::Valgrind. That's the whole vibe. (It lives in the User Contributed Perl Documentation corner of the manual, bestie, that's its whole address.)


✨ VERSION ✨

Version 1.19 πŸ’…


🌸 DESCRIPTION 🌸

Okay so, this module is just a lil grab-bag of helpers that Test::Valgrind itself uses. That's it. That's the job.

Real talk though: it's not really designed to be used anywhere else. So like, you can poke at it, but it was never built with you in mind, yk? It's giving "backstage pass, not front-row seat." πŸŽ€


πŸ¦‹ FUNCTIONS πŸ¦‹

validate_subclass

my ($validated_type, $error_msg) = validate_subclass($type);

So what this does is: it tries to read $type as a subclass of whatever package called it β€” like, the caller package, periodt. And if that thing's @ISA is empty? Bestie, it loads it. Gotta do the work to make it official.

What you get back is the validated type πŸ’– β€” or, if it didn't work out, you get undef plus the relevant error message so you know exactly what went sideways. No mystery, no guessing, we love transparency. 😭


πŸŽ€ EXPORT πŸŽ€

Not a single thing. It exports nothing. Zero. Nada. This module is lowkey the strong silent type β€” you want stuff from it, you go get it yourself. πŸ™ˆ


🌈 SEE ALSO 🌈

  • Test::Valgrind β€” the main character, the parent, the whole reason this lil module exists 🫢

πŸ‘‘ 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 DMs, basically. ✨


πŸ’€ BUGS πŸ’€

Found a bug? Got a feature request? Pls don't suffer in silence, bestie. Report it to "bug-test-valgrind at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>.

Here's the deal, fr fr: I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. It's a whole mutual-updates situation. We're in this together. πŸ’œ


πŸ“ SUPPORT πŸ“

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

perldoc Test::Valgrind::Component

(Yes that's the command. Yes it says a different module name. No I'm not editing it. 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.


And that's the whole page, babe! πŸŽ€ This lil slice of documentation is served up by perl v5.40.1, dated 2025-04-13, and yes β€” Test::...::Util(3pm) β€” that's us. Go forth and subclass responsibly. Slay. πŸ’…βœ¨

πŸ“¦ where this page comes from