Test::WriteVariants::Context - representation of test context
Contexts are used to abstract e.g. ambience or relations between opportunities and and their application.
A Context is an ordered list of various kinds of named values (such as environment variables, our vars) possibly including other Context objects.
Values can be looked up by name. The first match will be returned.
see Test::WriteVariants::Context::BaseItem
add a var to an existing config
instantiates new context using an environment variable
instantiates new context using a global variable
instantiates new context using a module
instantiates new context used to convey information between plugins
collects code from members
search backwards through list of settings, stop at first match
search backwards through list of settings, stop at first match (implies EnvVar)
search backwards through list of settings, stop at first match (implies OurVar)
search backwards through list of settings, stop at first match (implies ModuleUse)
search backwards through list of settings, stop at first match (implies MetaInfo)
This module has been created to support DBI::Test in design and separation of concerns.
Copyright 2014-2017 Tim Bunce and Perl5 DBI Team.
This program is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" which comes with this Kit.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details.
To install Test::WriteVariants, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::WriteVariants
CPAN shell
perl -MCPAN -e shell install Test::WriteVariants
For more information on module installation, please visit the detailed CPAN module installation guide.