Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
it.h
Go to the documentation of this file.
1#pragma once
2
3#include <Specs/SpecDone.h>
4
5#include <functional>
6
7#include "../GlobalInterface.h"
8
10
11 inline void it(std::string_view description, std::function<void()> body) {
13 description, function_pointer(std::move(body))
14 );
15 }
16
17 inline void it(std::string_view description, std::function<void(SpecsCpp::SpecDone)> body) {
19 description, function_pointer(std::move(body))
20 );
21 }
22}
void it(std::string_view description, std::function< void()> body)
Definition it.h:11
void define_test_fn(std::string_view description, FunctionPointer< void()> body)