• Home
  • Raw
  • Download

Lines Matching refs:fixture_name

236 #define _FIXTURE_DATA(fixture_name) struct _test_data_##fixture_name  argument
239 #define _FIXTURE(fixture_name) \ argument
241 _register_##fixture_name##_data(void) \
245 _FIXTURE_DATA(fixture_name)
250 #define _FIXTURE_SETUP(fixture_name) \ argument
251 void fixture_name##_setup( \
253 _FIXTURE_DATA(fixture_name) __attribute__((unused)) *self)
254 #define _FIXTURE_TEARDOWN(fixture_name) \ argument
255 void fixture_name##_teardown( \
257 _FIXTURE_DATA(fixture_name) __attribute__((unused)) *self)
263 #define _TEST_F(fixture_name, test_name) \ argument
264 __TEST_F_IMPL(fixture_name, test_name, -1)
266 #define _TEST_F_SIGNAL(fixture_name, test_name, signal) \ argument
267 __TEST_F_IMPL(fixture_name, test_name, signal)
269 #define __TEST_F_IMPL(fixture_name, test_name, signal) \ argument
270 static void fixture_name##_##test_name( \
272 _FIXTURE_DATA(fixture_name) *self); \
273 static inline void wrapper_##fixture_name##_##test_name( \
277 _FIXTURE_DATA(fixture_name) self; \
278 memset(&self, 0, sizeof(_FIXTURE_DATA(fixture_name))); \
279 fixture_name##_setup(_metadata, &self); \
283 fixture_name##_##test_name(_metadata, &self); \
284 fixture_name##_teardown(_metadata, &self); \
287 _##fixture_name##_##test_name##_object = { \
288 name: #fixture_name "." #test_name, \
289 fn: &wrapper_##fixture_name##_##test_name, \
293 _register_##fixture_name##_##test_name(void) \
295 __register_test(&_##fixture_name##_##test_name##_object); \
297 static void fixture_name##_##test_name( \
299 _FIXTURE_DATA(fixture_name) __attribute__((unused)) *self)