Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
ASYNC_TEST.h File Reference
#include <Specs/GlobalSpecGroup.h>
#include <Specs/SpecDone.h>
#include "MacrosCore.h"

Go to the source code of this file.

Macros

#define __SPEC_ASYNC_TEST_BODY(symbol, specDescription, count)
 
#define _SPEC_ASYNC_TEST(specDescription)    __SPEC_ASYNC_TEST_BODY(_SPEC_ASYNC_TEST_, specDescription, __COUNTER__)
 

Macro Definition Documentation

◆ __SPEC_ASYNC_TEST_BODY

#define __SPEC_ASYNC_TEST_BODY (   symbol,
  specDescription,
  count 
)
Value:
inline void _GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count)( \
); \
_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_RUNNER_VARIABLE_NAME_FROM_COUNT(symbol, count){[]( \
) { \
SpecsCpp::DSLs::GlobalInterface::define_test_fn( \
specDescription, \
_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count) \
); \
}}; \
inline void _GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count)( \
[[maybe_unused]] SpecsCpp::ISpecGroup * current_group, \
[[maybe_unused]] SpecsCpp::ISpec * current_test, SpecsCpp::SpecDone done \
)

Definition at line 8 of file ASYNC_TEST.h.

◆ _SPEC_ASYNC_TEST

#define _SPEC_ASYNC_TEST (   specDescription)     __SPEC_ASYNC_TEST_BODY(_SPEC_ASYNC_TEST_, specDescription, __COUNTER__)

Definition at line 24 of file ASYNC_TEST.h.