Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
test.h
Go to the documentation of this file.
1#pragma once
2
4#include <Specs/SpecDone.h>
5
6#include <functional>
7
8#include "../GlobalInterface.h"
9
11
12 inline void test(std::string_view description, std::function<void()> body) {
14 description, function_pointer(std::move(body))
15 );
16 }
17
18 inline void test(std::string_view description, std::function<void(SpecsCpp::SpecDone)> body) {
20 description, function_pointer(std::move(body))
21 );
22 }
23
24 inline void test(
25 std::string_view description, std::function<void(SpecsCpp::ISpecGroup*)> body
26 ) {
28 description, function_pointer(std::move(body))
29 );
30 }
31}
void test(std::string_view description, std::function< void()> body)
Definition test.h:12
void define_test_fn(std::string_view description, FunctionPointer< void()> body)