Test::A...:Helpers(3)

πŸ“¦
version 0.11 Β· 2 versions
, in fedora 43

πŸ’– Test::A...:Helpers πŸ’–

okay so bestie, this is Test::Able::Helpers, a little gem from the User Contributed Perl Documentation corner of the universe ✨


🌸 NAME 🌸

Test::Able::Helpers β€” literally a whole collection of helper mixins and I'm obsessed 🫢


✨ SYNOPSIS ✨

use Test::Able::Helpers;

my $t = MyTest;
$t->shuffle_methods;
$t->run_tests;

see? three lines. that's the whole vibe. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so Test::Able::Helpers is a collection of mixin methods that can be exported into the calling test class. no cap. they're here to make doing some things with Test::Able easier, because you deserve nice things. πŸŽ€

if you want actual example usages, go peek at Test::Able::Cookbook β€” that's where the receipts live. iykyk πŸ‘‘


πŸ’œ METHODS πŸ’œ

🌟 prune_super_methods

Removes any test-related methods from the associated method list if it's from a superclass β€” and by "from a superclass" we mean literally not from $self's class. so if it came from somewhere above you in the inheritance tree? gone. βœ‚οΈ

by default it does this for all test-related method types. but if you only wanna prune specific ones, you can optionally pass type names as args to limit which types get the treatment. your call, main character. 🫢

πŸ“ shuffle_methods

Randomizes the test-related method lists. yes. shuffles them. chaos but make it organized. πŸ”₯

by default it does this for all test-related method types. and again β€” type names can be optionally provided as args to limit what types this gets done for. 🌈

🧚 get_loop_plan

Calculates the plan for a test method when it's used in a "Loop-Driven" context. this assumes the setup and teardown method lists are being explicitly run as many times as the test method itself. ⭐

it has two required args: the test method name, and the test count.

  • the test method name is what's used to look up the plan of the test method itself πŸ‘€
  • the test count is the number of times that test method is gonna be called πŸ”’

πŸ‘‘ AUTHOR πŸ‘‘

Justin DeVuyst, "justin@devuyst.com" β€” absolute legend, we thank him for his service πŸ’–


Copyright 2009 by Justin DeVuyst.

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. slay. πŸŽ€


and that's the whole page bestie, no gatekeeping πŸ’€

sign-off time: this was perl v5.42.0, dated 2025-07-25, and it's the Test::A...:Helpers(3) manpage πŸ¦‹βœ¨ mwah, go write some tests πŸ’–

πŸ“¦ where this page comes from