The C++ framework for developing highly scalable, high performance servers on Windows platforms.

JsonTest Namespace Reference


Detailed Description

Unit testing framework.
Warning:
: all assertions are non-aborting, test case execution will continue even if an assertion namespace. This constraint is for portability: the framework needs to compile on Visual Studio 6 and must not require exception usage.


Classes

class  Failure
struct  PredicateContext
 Context used to create the assertion callstack on failure. Must be a POD to allow inline initialisation without stepping into the debugger. More...
class  TestResult
class  TestCase
class  Runner

Typedefs

typedef TestCase *(* TestCaseFactory )()
 Function pointer type for TestCase factory.

Functions

TestResultcheckStringEqual (TestResult &result, const std::string &expected, const std::string &actual, const char *file, unsigned int line, const char *expr)
template<typename T, typename U>
TestResultcheckEqual (TestResult &result, T expected, U actual, const char *file, unsigned int line, const char *expr)


Typedef Documentation

typedef TestCase*(* TestCaseFactory)()

Function pointer type for TestCase factory.


Function Documentation

TestResult& JsonTest::checkEqual ( TestResult &  result,
expected,
actual,
const char *  file,
unsigned int  line,
const char *  expr 
) [inline]

TestResult & checkStringEqual ( TestResult &  result,
const std::string &  expected,
const std::string &  actual,
const char *  file,
unsigned int  line,
const char *  expr 
)


Generated on Sun Sep 12 19:12:01 2021 for The Server Framework - v7.4 by doxygen 1.5.3