Test::...elpers(3pm)

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

πŸ’– 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::Base
  • Test::Run::Obj
  • Test::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