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