Manak  2.0.0
test_macros.hpp File Reference
Include dependency graph for test_macros.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  manak::ManakException
 

Namespaces

 manak
 C++ Unit Benchmarking Library.
 

Macros

#define MANAK_ASSERT_FALSE(expr)
 
#define MANAK_ASSERT_FALSE_MSG(expr, msg)
 
#define MANAK_ASSERT_TRUE(expr)
 
#define MANAK_ASSERT_TRUE_MSG(expr, msg)
 
#define MANAK_CHECK_FALSE(expr)
 
#define MANAK_CHECK_FALSE_MSG(expr, msg)
 
#define MANAK_CHECK_TRUE(expr)
 
#define MANAK_CHECK_TRUE_MSG(expr, msg)
 
#define TEST(Code)
 

Macro Definition Documentation

#define MANAK_ASSERT_FALSE (   expr)
Value:
if(!(expr)); \
else \
{ \
}
#define MANAK_STRINGIZE(X)
Converts the parameter into string.
Definition: macro_utils.hpp:13
static TestMonitor & GetGlobalTestMonitor()

Definition at line 46 of file test_macros.hpp.

#define MANAK_ASSERT_FALSE_MSG (   expr,
  msg 
)
Value:
if(!(expr)); \
else \
{ \
if(manak::TestMonitor::GetGlobalTestMonitor().AddAssert(new manak::MsgEntry(MANAK_STRINGIZE(__FILE__), __LINE__, msg))) \
}
#define MANAK_STRINGIZE(X)
Converts the parameter into string.
Definition: macro_utils.hpp:13
static TestMonitor & GetGlobalTestMonitor()

Definition at line 54 of file test_macros.hpp.

#define MANAK_ASSERT_TRUE (   expr)
Value:
if(expr); \
else \
{ \
}
#define MANAK_STRINGIZE(X)
Converts the parameter into string.
Definition: macro_utils.hpp:13
static TestMonitor & GetGlobalTestMonitor()

Definition at line 30 of file test_macros.hpp.

#define MANAK_ASSERT_TRUE_MSG (   expr,
  msg 
)
Value:
if(expr); \
else \
{ \
if(manak::TestMonitor::GetGlobalTestMonitor().AddAssert(new manak::MsgEntry(MANAK_STRINGIZE(__FILE__), __LINE__, msg))) \
}
#define MANAK_STRINGIZE(X)
Converts the parameter into string.
Definition: macro_utils.hpp:13
static TestMonitor & GetGlobalTestMonitor()

Definition at line 38 of file test_macros.hpp.

#define MANAK_CHECK_FALSE (   expr)
Value:
if(!(expr)); \
else \
{ \
}
#define MANAK_STRINGIZE(X)
Converts the parameter into string.
Definition: macro_utils.hpp:13
static TestMonitor & GetGlobalTestMonitor()
MANAK_INLINE bool AddCheck(TestEntry *entry)

Definition at line 76 of file test_macros.hpp.

#define MANAK_CHECK_FALSE_MSG (   expr,
  msg 
)
Value:
if(!(expr)); \
else \
{ \
}
#define MANAK_STRINGIZE(X)
Converts the parameter into string.
Definition: macro_utils.hpp:13
static TestMonitor & GetGlobalTestMonitor()
MANAK_INLINE bool AddCheck(TestEntry *entry)

Definition at line 83 of file test_macros.hpp.

#define MANAK_CHECK_TRUE (   expr)
Value:
if(expr); \
else \
{ \
}
#define MANAK_STRINGIZE(X)
Converts the parameter into string.
Definition: macro_utils.hpp:13
static TestMonitor & GetGlobalTestMonitor()
MANAK_INLINE bool AddCheck(TestEntry *entry)

Definition at line 62 of file test_macros.hpp.

#define MANAK_CHECK_TRUE_MSG (   expr,
  msg 
)
Value:
if(expr); \
else \
{ \
}
#define MANAK_STRINGIZE(X)
Converts the parameter into string.
Definition: macro_utils.hpp:13
static TestMonitor & GetGlobalTestMonitor()
MANAK_INLINE bool AddCheck(TestEntry *entry)

Definition at line 69 of file test_macros.hpp.

#define TEST (   Code)
Value:
try \
{ \
Code; \
} catch(manak::ManakException& ex){} \
catch(std::exception& ex) \
{ \
}
MANAK_INLINE bool AddText(TestEntry *entry)
MANAK_INLINE void Enable()
#define MANAK_STRINGIZE(X)
Converts the parameter into string.
Definition: macro_utils.hpp:13
static TestMonitor & GetGlobalTestMonitor()

Definition at line 19 of file test_macros.hpp.