1Test::WriteVariants::CoUnsteerxtC(o3n)tributed Perl DocuTmeesntt:a:tWirointeVariants::Context(3)
2
3
4

NAME

6       Test::WriteVariants::Context - representation of test context
7

DESCRIPTION

9       Contexts are used to abstract e.g. ambience or relations between
10       opportunities and and their application.
11

METHODS

13   new
14       A Context is an ordered list of various kinds of named values (such as
15       environment variables, our vars) possibly including other Context
16       objects.
17
18       Values can be looked up by name. The first match will be returned.
19
20   new_composite
21       see Test::WriteVariants::Context::BaseItem
22
23   push_var
24       add a var to an existing config
25
26   new_env_var
27       instantiates new context using an environment variable
28
29   new_our_var
30       instantiates new context using a global variable
31
32   new_module_use
33       instantiates new context using a module
34
35   new_meta_info
36       instantiates new context used to convey information between plugins
37
38   get_code
39       collects code from members
40
41   get_var
42       search backwards through list of settings, stop at first match
43
44   get_env_var
45       search backwards through list of settings, stop at first match (implies
46       EnvVar)
47
48   get_our_var
49       search backwards through list of settings, stop at first match (implies
50       OurVar)
51
52   get_module_use
53       search backwards through list of settings, stop at first match (implies
54       ModuleUse)
55
56   get_meta_info
57       search backwards through list of settings, stop at first match (implies
58       MetaInfo)
59

ACKNOWLEDGEMENTS

61       This module has been created to support DBI::Test in design and
62       separation of concerns.
63
65       Copyright 2014-2017 Tim Bunce and Perl5 DBI Team.
66

LICENSE

68       This program is free software; you can redistribute it and/or modify it
69       under the terms of either:
70
71               a) the GNU General Public License as published by the Free
72               Software Foundation; either version 1, or (at your option) any
73               later version, or
74
75               b) the "Artistic License" which comes with this Kit.
76
77       This program is distributed in the hope that it will be useful, but
78       WITHOUT ANY WARRANTY; without even the implied warranty of
79       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See either the
80       GNU General Public License or the Artistic License for more details.
81
82
83
84perl v5.36.0                      2022-07-22   Test::WriteVariants::Context(3)
Impressum