9 inline void define_template_fn(std::string_view templateName, FunctionPointer<
void()> body) {
11 templateName, std::make_unique<SpecCodeBlock>(std::move(body))
18 std::string_view description, FunctionPointer<
void()> body,
bool removeUnderscores =
false
21 description, std::make_unique<SpecCodeBlock>(std::move(body)), removeUnderscores
26 std::string_view description, FunctionPointer<
void(
ISpecGroup*)> body,
27 bool removeUnderscores =
false
30 description, std::make_unique<SpecCodeBlock>(std::move(body)), removeUnderscores
36 inline void define_test_fn(std::string_view description, FunctionPointer<
void()> body) {
38 description, std::make_unique<SpecCodeBlock>(std::move(body))
44 description, std::make_unique<SpecCodeBlock>(std::move(body))
50 description, std::make_unique<SpecCodeBlock>(std::move(body))
55 std::string_view description, FunctionPointer<
void(
ISpec*,
SpecDone)> body
58 description, std::make_unique<SpecCodeBlock>(std::move(body))
63 std::string_view description, FunctionPointer<
void(
ISpecGroup*)> body
66 description, std::make_unique<SpecCodeBlock>(std::move(body))
74 description, std::make_unique<SpecCodeBlock>(std::move(body))
79 std::string_view description, FunctionPointer<
void(
ISpecGroup*,
ISpec*)> body
82 description, std::make_unique<SpecCodeBlock>(std::move(body))
90 description, std::make_unique<SpecCodeBlock>(std::move(body))
161 std::make_unique<SpecCodeBlock>(std::move(body))
167 std::make_unique<SpecCodeBlock>(std::move(body))
173 std::make_unique<SpecCodeBlock>(std::move(body))
181 std::make_unique<SpecCodeBlock>(std::move(body))
189 std::make_unique<SpecCodeBlock>(std::move(body))
197 std::make_unique<SpecCodeBlock>(std::move(body))
205 std::make_unique<SpecCodeBlock>(std::move(body))
211 std::make_unique<SpecCodeBlock>(std::move(body))
217 std::make_unique<SpecCodeBlock>(std::move(body))
225 std::make_unique<SpecCodeBlock>(std::move(body))
233 std::make_unique<SpecCodeBlock>(std::move(body))
241 std::make_unique<SpecCodeBlock>(std::move(body))
static GlobalSpecGroup & instance()
void define_group(std::string_view description, std::unique_ptr< SpecCodeBlock > codeBlock, bool removeUnderscores=false)
void define_teardown(std::unique_ptr< SpecCodeBlock > codeBlock, bool skip=false)
void define_spec(std::string_view description, std::unique_ptr< SpecCodeBlock > codeBlock, bool skip=false)
void define_setup(std::unique_ptr< SpecCodeBlock > codeBlock, bool skip=false)
void define_one_time_teardown(std::unique_ptr< SpecCodeBlock > codeBlock, bool skip=false)
void define_one_time_setup(std::unique_ptr< SpecCodeBlock > codeBlock, bool skip=false)
void define_template(std::string_view templateName, std::unique_ptr< SpecCodeBlock > codeBlock)
void define_setup_fn(FunctionPointer< void()> body)
void define_one_time_teardown_fn(FunctionPointer< void()> body)
void define_template_fn(std::string_view templateName, FunctionPointer< void()> body)
void define_group_fn(std::string_view description, FunctionPointer< void()> body, bool removeUnderscores=false)
void define_test_fn(std::string_view description, FunctionPointer< void()> body)
void define_teardown_fn(FunctionPointer< void()> body)
void define_one_time_setup_fn(FunctionPointer< void()> body)