Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SpecsCpp::DSLs::GlobalInterface Namespace Reference

Functions

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_group_fn (std::string_view description, FunctionPointer< void(ISpecGroup *)> body, bool removeUnderscores=false)
 
void define_test_fn (std::string_view description, FunctionPointer< void()> body)
 
void define_test_fn (std::string_view description, FunctionPointer< void(SpecDone)> body)
 
void define_test_fn (std::string_view description, FunctionPointer< void(ISpec *)> body)
 
void define_test_fn (std::string_view description, FunctionPointer< void(ISpec *, SpecDone)> body)
 
void define_test_fn (std::string_view description, FunctionPointer< void(ISpecGroup *)> body)
 
void define_test_fn (std::string_view description, FunctionPointer< void(ISpecGroup *, SpecDone)> body)
 
void define_test_fn (std::string_view description, FunctionPointer< void(ISpecGroup *, ISpec *)> body)
 
void define_test_fn (std::string_view description, FunctionPointer< void(ISpecGroup *, ISpec *, SpecDone)> body)
 
void define_setup_fn (FunctionPointer< void()> body)
 
void define_setup_fn (FunctionPointer< void(SpecDone)> body)
 
void define_setup_fn (FunctionPointer< void(ISpecComponent *, ISpec *)> body)
 
void define_setup_fn (FunctionPointer< void(ISpecComponent *, ISpec *, SpecDone)> body)
 
void define_setup_fn (FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *)> body)
 
void define_setup_fn (FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *, SpecDone)> body)
 
void define_teardown_fn (FunctionPointer< void()> body)
 
void define_teardown_fn (FunctionPointer< void(SpecDone)> body)
 
void define_teardown_fn (FunctionPointer< void(ISpecComponent *, ISpec *)> body)
 
void define_teardown_fn (FunctionPointer< void(ISpecComponent *, ISpec *, SpecDone)> body)
 
void define_teardown_fn (FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *)> body)
 
void define_teardown_fn (FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *, SpecDone)> body)
 
void define_one_time_setup_fn (FunctionPointer< void()> body)
 
void define_one_time_setup_fn (FunctionPointer< void(SpecDone)> body)
 
void define_one_time_setup_fn (FunctionPointer< void(ISpecComponent *, ISpec *)> body)
 
void define_one_time_setup_fn (FunctionPointer< void(ISpecComponent *, ISpec *, SpecDone)> body)
 
void define_one_time_setup_fn (FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *)> body)
 
void define_one_time_setup_fn (FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *, SpecDone)> body)
 
void define_one_time_teardown_fn (FunctionPointer< void()> body)
 
void define_one_time_teardown_fn (FunctionPointer< void(SpecDone)> body)
 
void define_one_time_teardown_fn (FunctionPointer< void(ISpecComponent *, ISpec *)> body)
 
void define_one_time_teardown_fn (FunctionPointer< void(ISpecComponent *, ISpec *, SpecDone)> body)
 
void define_one_time_teardown_fn (FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *)> body)
 
void define_one_time_teardown_fn (FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *, SpecDone)> body)
 

Function Documentation

◆ define_group_fn() [1/2]

void SpecsCpp::DSLs::GlobalInterface::define_group_fn ( std::string_view  description,
FunctionPointer< void()>  body,
bool  removeUnderscores = false 
)
inline

Definition at line 17 of file GlobalInterface.h.

19 {
20 GlobalSpecGroup::instance().define_group(
21 description, std::make_unique<SpecCodeBlock>(std::move(body)), removeUnderscores
22 );
23 }

Referenced by SpecsCpp::DSLs::Functions::describe().

◆ define_group_fn() [2/2]

void SpecsCpp::DSLs::GlobalInterface::define_group_fn ( std::string_view  description,
FunctionPointer< void(ISpecGroup *)>  body,
bool  removeUnderscores = false 
)
inline

Definition at line 25 of file GlobalInterface.h.

28 {
29 GlobalSpecGroup::instance().define_group(
30 description, std::make_unique<SpecCodeBlock>(std::move(body)), removeUnderscores
31 );
32 }

◆ define_one_time_setup_fn() [1/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_setup_fn ( FunctionPointer< void()>  body)
inline

Definition at line 159 of file GlobalInterface.h.

159 {
160 GlobalSpecGroup::instance().define_one_time_setup(
161 std::make_unique<SpecCodeBlock>(std::move(body))
162 );
163 }

◆ define_one_time_setup_fn() [2/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_setup_fn ( FunctionPointer< void(ISpecComponent *, ISpec *)>  body)
inline

Definition at line 171 of file GlobalInterface.h.

171 {
172 GlobalSpecGroup::instance().define_one_time_setup(
173 std::make_unique<SpecCodeBlock>(std::move(body))
174 );
175 }

◆ define_one_time_setup_fn() [3/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_setup_fn ( FunctionPointer< void(ISpecComponent *, ISpec *, SpecDone)>  body)
inline

Definition at line 177 of file GlobalInterface.h.

179 {
180 GlobalSpecGroup::instance().define_one_time_setup(
181 std::make_unique<SpecCodeBlock>(std::move(body))
182 );
183 }

◆ define_one_time_setup_fn() [4/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_setup_fn ( FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *)>  body)
inline

Definition at line 185 of file GlobalInterface.h.

187 {
188 GlobalSpecGroup::instance().define_one_time_setup(
189 std::make_unique<SpecCodeBlock>(std::move(body))
190 );
191 }

◆ define_one_time_setup_fn() [5/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_setup_fn ( FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *, SpecDone)>  body)
inline

Definition at line 193 of file GlobalInterface.h.

195 {
196 GlobalSpecGroup::instance().define_one_time_setup(
197 std::make_unique<SpecCodeBlock>(std::move(body))
198 );
199 }

◆ define_one_time_setup_fn() [6/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_setup_fn ( FunctionPointer< void(SpecDone)>  body)
inline

Definition at line 165 of file GlobalInterface.h.

165 {
166 GlobalSpecGroup::instance().define_one_time_setup(
167 std::make_unique<SpecCodeBlock>(std::move(body))
168 );
169 }

◆ define_one_time_teardown_fn() [1/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_teardown_fn ( FunctionPointer< void()>  body)
inline

Definition at line 203 of file GlobalInterface.h.

203 {
204 GlobalSpecGroup::instance().define_one_time_teardown(
205 std::make_unique<SpecCodeBlock>(std::move(body))
206 );
207 }

◆ define_one_time_teardown_fn() [2/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_teardown_fn ( FunctionPointer< void(ISpecComponent *, ISpec *)>  body)
inline

Definition at line 215 of file GlobalInterface.h.

215 {
216 GlobalSpecGroup::instance().define_one_time_teardown(
217 std::make_unique<SpecCodeBlock>(std::move(body))
218 );
219 }

◆ define_one_time_teardown_fn() [3/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_teardown_fn ( FunctionPointer< void(ISpecComponent *, ISpec *, SpecDone)>  body)
inline

Definition at line 221 of file GlobalInterface.h.

223 {
224 GlobalSpecGroup::instance().define_one_time_teardown(
225 std::make_unique<SpecCodeBlock>(std::move(body))
226 );
227 }

◆ define_one_time_teardown_fn() [4/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_teardown_fn ( FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *)>  body)
inline

Definition at line 229 of file GlobalInterface.h.

231 {
232 GlobalSpecGroup::instance().define_one_time_teardown(
233 std::make_unique<SpecCodeBlock>(std::move(body))
234 );
235 }

◆ define_one_time_teardown_fn() [5/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_teardown_fn ( FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *, SpecDone)>  body)
inline

Definition at line 237 of file GlobalInterface.h.

239 {
240 GlobalSpecGroup::instance().define_one_time_teardown(
241 std::make_unique<SpecCodeBlock>(std::move(body))
242 );
243 }

◆ define_one_time_teardown_fn() [6/6]

void SpecsCpp::DSLs::GlobalInterface::define_one_time_teardown_fn ( FunctionPointer< void(SpecDone)>  body)
inline

Definition at line 209 of file GlobalInterface.h.

209 {
210 GlobalSpecGroup::instance().define_one_time_teardown(
211 std::make_unique<SpecCodeBlock>(std::move(body))
212 );
213 }

◆ define_setup_fn() [1/6]

void SpecsCpp::DSLs::GlobalInterface::define_setup_fn ( FunctionPointer< void()>  body)
inline

Definition at line 96 of file GlobalInterface.h.

96 {
97 GlobalSpecGroup::instance().define_setup(std::make_unique<SpecCodeBlock>(std::move(body)));
98 }

Referenced by SpecsCpp::DSLs::Functions::setup(), and SpecsCpp::DSLs::Functions::setup().

◆ define_setup_fn() [2/6]

void SpecsCpp::DSLs::GlobalInterface::define_setup_fn ( FunctionPointer< void(ISpecComponent *, ISpec *)>  body)
inline

Definition at line 104 of file GlobalInterface.h.

104 {
105 GlobalSpecGroup::instance().define_setup(std::make_unique<SpecCodeBlock>(std::move(body)));
106 }

◆ define_setup_fn() [3/6]

void SpecsCpp::DSLs::GlobalInterface::define_setup_fn ( FunctionPointer< void(ISpecComponent *, ISpec *, SpecDone)>  body)
inline

Definition at line 108 of file GlobalInterface.h.

108 {
109 GlobalSpecGroup::instance().define_setup(std::make_unique<SpecCodeBlock>(std::move(body)));
110 }

◆ define_setup_fn() [4/6]

void SpecsCpp::DSLs::GlobalInterface::define_setup_fn ( FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *)>  body)
inline

Definition at line 112 of file GlobalInterface.h.

112 {
113 GlobalSpecGroup::instance().define_setup(std::make_unique<SpecCodeBlock>(std::move(body)));
114 }

◆ define_setup_fn() [5/6]

void SpecsCpp::DSLs::GlobalInterface::define_setup_fn ( FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *, SpecDone)>  body)
inline

Definition at line 116 of file GlobalInterface.h.

118 {
119 GlobalSpecGroup::instance().define_setup(std::make_unique<SpecCodeBlock>(std::move(body)));
120 }

◆ define_setup_fn() [6/6]

void SpecsCpp::DSLs::GlobalInterface::define_setup_fn ( FunctionPointer< void(SpecDone)>  body)
inline

Definition at line 100 of file GlobalInterface.h.

100 {
101 GlobalSpecGroup::instance().define_setup(std::make_unique<SpecCodeBlock>(std::move(body)));
102 }

◆ define_teardown_fn() [1/6]

void SpecsCpp::DSLs::GlobalInterface::define_teardown_fn ( FunctionPointer< void()>  body)
inline

Definition at line 124 of file GlobalInterface.h.

124 {
125 GlobalSpecGroup::instance().define_teardown(std::make_unique<SpecCodeBlock>(std::move(body))
126 );
127 }

Referenced by SpecsCpp::DSLs::Functions::teardown(), and SpecsCpp::DSLs::Functions::teardown().

◆ define_teardown_fn() [2/6]

void SpecsCpp::DSLs::GlobalInterface::define_teardown_fn ( FunctionPointer< void(ISpecComponent *, ISpec *)>  body)
inline

Definition at line 134 of file GlobalInterface.h.

134 {
135 GlobalSpecGroup::instance().define_teardown(std::make_unique<SpecCodeBlock>(std::move(body))
136 );
137 }

◆ define_teardown_fn() [3/6]

void SpecsCpp::DSLs::GlobalInterface::define_teardown_fn ( FunctionPointer< void(ISpecComponent *, ISpec *, SpecDone)>  body)
inline

Definition at line 139 of file GlobalInterface.h.

139 {
140 GlobalSpecGroup::instance().define_teardown(std::make_unique<SpecCodeBlock>(std::move(body))
141 );
142 }

◆ define_teardown_fn() [4/6]

void SpecsCpp::DSLs::GlobalInterface::define_teardown_fn ( FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *)>  body)
inline

Definition at line 144 of file GlobalInterface.h.

145 {
146 GlobalSpecGroup::instance().define_teardown(std::make_unique<SpecCodeBlock>(std::move(body))
147 );
148 }

◆ define_teardown_fn() [5/6]

void SpecsCpp::DSLs::GlobalInterface::define_teardown_fn ( FunctionPointer< void(ISpecGroup *, ISpecComponent *, ISpec *, SpecDone)>  body)
inline

Definition at line 150 of file GlobalInterface.h.

152 {
153 GlobalSpecGroup::instance().define_teardown(std::make_unique<SpecCodeBlock>(std::move(body))
154 );
155 }

◆ define_teardown_fn() [6/6]

void SpecsCpp::DSLs::GlobalInterface::define_teardown_fn ( FunctionPointer< void(SpecDone)>  body)
inline

Definition at line 129 of file GlobalInterface.h.

129 {
130 GlobalSpecGroup::instance().define_teardown(std::make_unique<SpecCodeBlock>(std::move(body))
131 );
132 }

◆ define_template_fn()

void SpecsCpp::DSLs::GlobalInterface::define_template_fn ( std::string_view  templateName,
FunctionPointer< void()>  body 
)
inline

Definition at line 9 of file GlobalInterface.h.

9 {
10 GlobalSpecGroup::instance().define_template(
11 templateName, std::make_unique<SpecCodeBlock>(std::move(body))
12 );
13 }

Referenced by SpecsCpp::DSLs::Functions::test_template().

◆ define_test_fn() [1/8]

void SpecsCpp::DSLs::GlobalInterface::define_test_fn ( std::string_view  description,
FunctionPointer< void()>  body 
)
inline

Definition at line 36 of file GlobalInterface.h.

36 {
37 GlobalSpecGroup::instance().define_spec(
38 description, std::make_unique<SpecCodeBlock>(std::move(body))
39 );
40 }

Referenced by SpecsCpp::DSLs::Functions::it(), SpecsCpp::DSLs::Functions::it(), SpecsCpp::DSLs::Functions::spec(), SpecsCpp::DSLs::Functions::spec(), SpecsCpp::DSLs::Functions::test(), SpecsCpp::DSLs::Functions::test(), and SpecsCpp::DSLs::Functions::test().

◆ define_test_fn() [2/8]

void SpecsCpp::DSLs::GlobalInterface::define_test_fn ( std::string_view  description,
FunctionPointer< void(ISpec *)>  body 
)
inline

Definition at line 48 of file GlobalInterface.h.

48 {
49 GlobalSpecGroup::instance().define_spec(
50 description, std::make_unique<SpecCodeBlock>(std::move(body))
51 );
52 }

◆ define_test_fn() [3/8]

void SpecsCpp::DSLs::GlobalInterface::define_test_fn ( std::string_view  description,
FunctionPointer< void(ISpec *, SpecDone)>  body 
)
inline

Definition at line 54 of file GlobalInterface.h.

56 {
57 GlobalSpecGroup::instance().define_spec(
58 description, std::make_unique<SpecCodeBlock>(std::move(body))
59 );
60 }

◆ define_test_fn() [4/8]

void SpecsCpp::DSLs::GlobalInterface::define_test_fn ( std::string_view  description,
FunctionPointer< void(ISpecGroup *)>  body 
)
inline

Definition at line 62 of file GlobalInterface.h.

64 {
65 GlobalSpecGroup::instance().define_spec(
66 description, std::make_unique<SpecCodeBlock>(std::move(body))
67 );
68 }

◆ define_test_fn() [5/8]

void SpecsCpp::DSLs::GlobalInterface::define_test_fn ( std::string_view  description,
FunctionPointer< void(ISpecGroup *, ISpec *)>  body 
)
inline

Definition at line 78 of file GlobalInterface.h.

80 {
81 GlobalSpecGroup::instance().define_spec(
82 description, std::make_unique<SpecCodeBlock>(std::move(body))
83 );
84 }

◆ define_test_fn() [6/8]

void SpecsCpp::DSLs::GlobalInterface::define_test_fn ( std::string_view  description,
FunctionPointer< void(ISpecGroup *, ISpec *, SpecDone)>  body 
)
inline

Definition at line 86 of file GlobalInterface.h.

88 {
89 GlobalSpecGroup::instance().define_spec(
90 description, std::make_unique<SpecCodeBlock>(std::move(body))
91 );
92 }

◆ define_test_fn() [7/8]

void SpecsCpp::DSLs::GlobalInterface::define_test_fn ( std::string_view  description,
FunctionPointer< void(ISpecGroup *, SpecDone)>  body 
)
inline

Definition at line 70 of file GlobalInterface.h.

72 {
73 GlobalSpecGroup::instance().define_spec(
74 description, std::make_unique<SpecCodeBlock>(std::move(body))
75 );
76 }

◆ define_test_fn() [8/8]

void SpecsCpp::DSLs::GlobalInterface::define_test_fn ( std::string_view  description,
FunctionPointer< void(SpecDone)>  body 
)
inline

Definition at line 42 of file GlobalInterface.h.

42 {
43 GlobalSpecGroup::instance().define_spec(
44 description, std::make_unique<SpecCodeBlock>(std::move(body))
45 );
46 }