1#ifndef HALCHECK_TEST_DESERIALIZE_HPP
2#define HALCHECK_TEST_DESERIALIZE_HPP
4#include <halcheck/lib/effect.hpp>
5#include <halcheck/lib/optional.hpp>
6#include <halcheck/lib/string.hpp>
7#include <halcheck/lib/utility.hpp>
8#include <halcheck/test/strategy.hpp>
12namespace halcheck {
namespace test {
16 lib::optional<std::string> fallback()
const {
return lib::getenv(
"HALCHECK_" + key); }
23 auto value = test::read(std::move(key));
static lib::effect_result_t< T > invoke(T args)
Invokes an effect.
Definition effect.hpp:118
lib::optional< std::string > getenv(const std::string &name)
Gets the value of an environment variable.
lib::optional< T > of_string(const std::string &value)
Converts a std::string to a value using operator>>.
Definition string.hpp:43