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

Go to the source code of this file.

Macros

#define _SPEC_TEST_BODY(symbol, specDescription, count)
 
#define _SPEC_TEST(specDescription)   _SPEC_TEST_BODY(_SPEC_TEST_, specDescription, __COUNTER__)
 

Macro Definition Documentation

◆ _SPEC_TEST

#define _SPEC_TEST (   specDescription)    _SPEC_TEST_BODY(_SPEC_TEST_, specDescription, __COUNTER__)

Definition at line 22 of file TEST.h.

◆ _SPEC_TEST_BODY

#define _SPEC_TEST_BODY (   symbol,
  specDescription,
  count 
)
Value:
inline void \
_GLOBAL_MACRO_FUNCTIONS_NEW_NAMED_FUNCTION_NAME_FROM_COUNT(symbol, count)(SpecsCpp::ISpecGroup*, SpecsCpp::ISpec*); \
_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 \
)

Definition at line 7 of file TEST.h.