Test::W...Context(3)

πŸ“¦
version 0.014 Β· 3 versions
, in opensuse-leap 16.0

🌸 NAME 🌸

Okay bestie, this page is Test::W...Context(3) from the User Contributed Perl Documentation, and the module behind it is Test::WriteVariants::Context β€” representation of test context. That's the whole vibe. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

Contexts are used to abstract e.g. ambience or relations between opportunities and and their application. (The double β€œand” is canon, bestie 🫢.)

πŸ’… METHODS πŸ’…

✨ new ✨

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.

🌟 new_composite 🌟

see Test::WriteVariants::Context::BaseItem

πŸŽ€ push_var πŸŽ€

add a var to an existing config

πŸ¦‹ new_env_var πŸ¦‹

instantiates new context using an environment variable

🌸 new_our_var 🌸

instantiates new context using a global variable

⭐ new_module_use ⭐

instantiates new context using a module

🧚 new_meta_info 🧚

instantiates new context used to convey information between plugins

πŸ”₯ get_code πŸ”₯

collects code from members

πŸ” get_var πŸ”

search backwards through list of settings, stop at first match

πŸ’œ get_env_var πŸ’œ

search backwards through list of settings, stop at first match (implies EnvVar)

🩡 get_our_var 🩡

search backwards through list of settings, stop at first match (implies OurVar)

🌈 get_module_use 🌈

search backwards through list of settings, stop at first match (implies ModuleUse)

πŸ‘‘ get_meta_info πŸ‘‘

search backwards through list of settings, stop at first match (implies MetaInfo)

🫢 ACKNOWLEDGEMENTS 🫢

This module has been created to support DBI::Test in design and separation of concerns.

Copyright 2014-2017 Tim Bunce and Perl5 DBI Team.

🌈 LICENSE 🌈

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.

And that's the page, bestie! πŸŽ‰ This cutie came from perl v5.42.0, dated 2018-10-09, and it's Test::W...Context(3) β€” go make your tests context-aware, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from