tunit - Reference Guide  1.0.0
Modern c++17 unit testing framework on Windows, macOS, Linux, iOS and android.
test_method_attribute.h File Reference

Contains tunit::test_method_attribute class. More...

#include "test.h"
#include "test_state.h"
Include dependency graph for test_method_attribute.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tunit::test_method_attribute
 

Namespaces

 tunit
 The tunit namespace contains a unit test library.
 

Macros

#define ignore_test_method_(method_name)
 
#define test_method_(method_name)
 

Detailed Description

Macro Definition Documentation

◆ ignore_test_method_

#define ignore_test_method_ (   method_name)
Value:
__##method_name##_unused() = delete; \
class __##method_name##_attribute##_class : public tunit::test_method_attribute { \
public:\
template<typename test_class> __##method_name##_attribute##_class(test_class& test) : test_method_attribute(#method_name, test, &test_class::method_name, tunit::test_state::ignored, {__func__, __FILE__, __LINE__}) {} \
} __##method_name##_attribute {*this}; \
void method_name()
test_state
Represent the test state enumeration used bu test.
Definition: test_state.h:9
Definition: test_method_attribute.h:9
The tunit namespace contains a unit test library.
Definition: abort_error.h:8

◆ test_method_

#define test_method_ (   method_name)
Value:
__##method_name##_unused() = delete; \
class __##method_name##_attribute##_class : public tunit::test_method_attribute { \
public:\
template<typename test_class> __##method_name##_attribute##_class(test_class& test) : test_method_attribute(#method_name, test, &test_class::method_name, {__func__, __FILE__, __LINE__}) {} \
} __##method_name##_attribute {*this}; \
void method_name()
Definition: test_method_attribute.h:9