halcheck 1.0
Loading...
Searching...
No Matches
halcheck::test Namespace Reference

Test strategy library. More...

Classes

class  strategy
 A strategy executes a nullary function while handling effects or performing other operations such as logging. More...
 

Functions

test::strategy check ()
 
test::strategy config (const std::initializer_list< test::set > &)
 
template<typename... Args>
test::strategy config (Args &&...args)
 
lib::optional< std::stringread (std::string key)
 
template<typename T >
lib::optional< T > read (std::string key)
 
test::strategy deserialize (std::string name)
 
test::strategy random ()
 
template<typename T >
void write (std::string key, const T &value)
 
void write (std::string key, std::string value)
 
test::strategy serialize (std::string name)
 
test::strategy shrink ()
 
test::strategy forward_shrink ()
 
template<typename F , typename... Args>
test::strategy make_strategy (Args &&...args)
 Constructs a strategy of the given type.
 
test::strategy operator| (test::strategy lhs, test::strategy rhs)
 Composes one strategy inside another.
 
test::strategy operator& (test::strategy lhs, test::strategy rhs)
 Composes two strategies sequentially.
 

Detailed Description

Test strategy library.