5namespace hegel::impl::test_case {
36 TestCase(
const TestCase&) =
delete;
37 TestCase& operator=(
const TestCase&) =
delete;
38 TestCase(TestCase&&) =
delete;
39 TestCase& operator=(TestCase&&) =
delete;
70 void note(std::string_view message)
const;
73 explicit TestCase(impl::test_case::TestCaseData* data) : data_(data) {}
77 impl::test_case::TestCaseData* data()
const {
return data_; }
81 impl::test_case::TestCaseData* data_;
void assume(bool condition) const
Reject the current test case if condition is false.
void note(std::string_view message) const
Record a message that will be printed on the final replay of a failing test case.
T draw(const generators::Generator< T > &gen) const
Draw a random value from a generator.
Definition core.h:371
The base class of all generators.
Definition core.h:157
Hegel generators.
Definition core.h:16
Main namespace.
Definition core.h:16