Free Electron
Classes | Typedefs | Functions
JsonTest Namespace Reference

Unit testing framework. More...

Classes

struct  PredicateContext
 Context used to create the assertion callstack on failure. More...
 

Typedefs

using TestCaseFactory = TestCase *(*)()
 Function pointer type for TestCase factory. More...
 

Functions

template<typename T , typename U >
TestResult & checkEqual (TestResult &result, T expected, U actual, const char *file, unsigned int line, const char *expr)
 
Json::String ToJsonString (const char *toConvert)
 
Json::String ToJsonString (Json::String in)
 
TestResult & checkStringEqual (TestResult &result, const Json::String &expected, const Json::String &actual, const char *file, unsigned int line, const char *expr)
 

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.

Typedef Documentation

◆ TestCaseFactory

using JsonTest::TestCaseFactory = typedef TestCase* (*)()

Function pointer type for TestCase factory.