1Test::Run::Base::PlugHeUlspeerrsC(o3n)tributed Perl DocuTmeesntt:a:tRiuonn::Base::PlugHelpers(3)
2
3
4

NAME

6       Test::Run::Base::PlugHelpers - base class for Test::Run's classes with
7       pluggable helpers.
8
9   $self->register_pluggable_helper( { %args } )
10       Registers a pluggable helper class (commonly done during
11       initialisation).  %args contain the following keys:
12
13       ·   'id'
14
15           The 'id' identifying this class type.
16
17       ·   'base'
18
19           The base class to use as the ultimate primary class of the plugin-
20           based class.
21
22       ·   'collect_plugins_method'
23
24           The method from which to collect the plugins. It should be defined
25           for every base class in the hierarchy of the main class (that
26           instantiates the helpers) and is traversed there.
27
28   $self->calc_helpers_namespace($id)
29       Calc the namespace to put the helper with the ID $id in.
30
31   $self->create_pluggable_helper_obj({ id => $id, args => $args })
32       Instantiates a new pluggable helper object of the ID $id and with $args
33       passed to the constructor.
34
35   $self->helpers_base_namespace()
36       TO OVERRIDE: this method determines the base namespace used as the base
37       for the pluggable helpers classes.
38

SEE ALSO

40       Test::Run::Base, Test::Run::Obj, Test::Run::Core
41

LICENSE

43       This file is freely distributable under the MIT X11 license.
44
45       <http://www.opensource.org/licenses/mit-license.php>
46

AUTHOR

48       Shlomi Fish, <http://www.shlomifish.org/>.
49
50
51
52perl v5.30.1                      2020-01-30   Test::Run::Base::PlugHelpers(3)
Impressum