Monero
Loading...
Searching...
No Matches
unittest.h File Reference
#include "gtest/gtest.h"
#include <stdexcept>
Include dependency graph for unittest.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AssertException
class  Random

Macros

#define __STDC_CONSTANT_MACROS   1
#define RAPIDJSON_HAS_CXX11_NOEXCEPT   0
#define RAPIDJSON_ASSERT(x)

Functions

template<typename Ch>
unsigned StrLen (const Ch *s)
template<typename Ch>
int StrCmp (const Ch *s1, const Ch *s2)
template<typename Ch>
ChStrDup (const Ch *str)
FILE * TempFile (char *filename)

Macro Definition Documentation

◆ __STDC_CONSTANT_MACROS

#define __STDC_CONSTANT_MACROS   1

◆ RAPIDJSON_ASSERT

#define RAPIDJSON_ASSERT ( x)
Value:
(!(x) ? throw AssertException(RAPIDJSON_STRINGIFY(x)) : (void)0u)
Definition unittest.h:109

◆ RAPIDJSON_HAS_CXX11_NOEXCEPT

#define RAPIDJSON_HAS_CXX11_NOEXCEPT   0

Function Documentation

◆ StrCmp()

template<typename Ch>
int StrCmp ( const Ch * s1,
const Ch * s2 )
inline

◆ StrDup()

template<typename Ch>
Ch * StrDup ( const Ch * str)
inline

◆ StrLen()

template<typename Ch>
unsigned StrLen ( const Ch * s)
inline

◆ TempFile()

FILE * TempFile ( char * filename)
inline