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

Contains tunit::test_cleanup_attribute class. More...

#include "test.h"
Include dependency graph for test_cleanup_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_cleanup_attribute
 

Namespaces

 tunit
 The tunit namespace contains a unit test library.
 

Macros

#define test_cleanup_(method_name)
 

Detailed Description

Macro Definition Documentation

◆ test_cleanup_

#define test_cleanup_ (   method_name)
Value:
__##method_name##_unused() = delete; \
class __test_cleanup_attribute : public tunit::test_cleanup_attribute { \
public:\
template<typename test_class> __test_cleanup_attribute(test_class& test) : test_cleanup_attribute(#method_name, test, &test_class::method_name, {__func__, __FILE__, __LINE__}) {} \
} __test_cleanup_attribute {*this}; \
static void method_name()
Definition: test_cleanup_attribute.h:8