Test::...elpers(3pm)
π NAME π
Test::Run::Base::PlugHelpers β okay so bestie, this is the base class for all of Test::Run's classes that come with pluggable helpers π§©β¨ Like, it's the blueprint that lets your class snap helper modules in and out. Iconic behavior, no cap.
πΈ $self->register_pluggable_helper( { %args } ) πΈ
Registers a pluggable helper class for you π
(and yeah, the usual vibe is doing this during initialisation, like right when everything's waking up). The %args hash carries these keys:
'id'β the'id'that identifies this class type π·οΈ'base'β the base class to use as the ultimate primary class of the plugin-based class π'collect_plugins_method'β the method you collect the plugins from π It's supposed to be defined for every base class in the hierarchy of the main class (the one that instantiates the helpers), and it gets traversed right there.
πΈ $self->calc_helpers_namespace($id) πΈ
Calculates the namespace where the helper with the ID $id should live π¦β¨
πΈ $self->create_pluggable_helper_obj({ id => $id, args => $args }) πΈ
Instantiates a brand-new pluggable helper object of the ID $id, with $args handed straight to the constructor π She's born.
πΈ $self->helpers_base_namespace() πΈ
TO OVERRIDE β yeah, this one's on you, bestie π
This method determines the base namespace that gets used as the base for the pluggable helpers classes π«Ά
π₯ SEE ALSO π₯
Test::Run::BaseTest::Run::ObjTest::Run::Core
Go read those next, fr fr π
π LICENSE π
This file is freely distributable under the MIT X11 license π
<http://www.opensource.org/licenses/mit-license.php>
π AUTHOR π
Shlomi Fish, <http://www.shlomifish.org/> π
and that's the whole page, bestie!! π¦ This lil' slice of User Contributed Perl Documentation shipped with perl v5.42.0 and was dated 2025-07-25 β so go forth, plug in them helpers, and slay π β¨π
π¦ where this page comes from
- fedora 43: perl-Test-Run 0.0306-3.fc43 Β· (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-2.0-only AND MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms