Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
test_template.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Specs/GlobalSpecGroup.h
>
4
5
#include <functional>
6
7
#include "../GlobalInterface.h"
8
9
namespace
SpecsCpp::DSLs::Functions
{
10
11
inline
void
test_template
(std::string_view templateName, std::function<
void
()> body) {
12
SpecsCpp::DSLs::GlobalInterface::define_template_fn
(
13
templateName, function_pointer(std::move(body))
14
);
15
}
16
}
GlobalSpecGroup.h
SpecsCpp::DSLs::Functions
Definition
describe.h:7
SpecsCpp::DSLs::Functions::test_template
void test_template(std::string_view templateName, std::function< void()> body)
Definition
test_template.h:11
SpecsCpp::DSLs::GlobalInterface::define_template_fn
void define_template_fn(std::string_view templateName, FunctionPointer< void()> body)
Definition
GlobalInterface.h:9
Specs.DSLs
include
Specs
DSLs
Functions
test_template.h
<3 Mrowr Purr