HDK
|
#include "UT_API.h"
#include "UT_Functor.h"
#include "UT_Function.h"
#include "UT_Main.h"
#include "UT_NonCopyable.h"
#include "UT_StopWatch.h"
#include "UT_WorkArgs.h"
#include "UT_WorkBuffer.h"
#include <SYS/SYS_Types.h>
Go to the source code of this file.
Classes | |
class | UT_TestManager |
class | UT_TestUnit |
Status maintainer used to run a test. More... | |
class | UT_TestBench |
Wrapper around the nanobench object for unit performance tests. More... | |
Namespaces | |
ankerl::nanobench | |
Macros | |
#define | TEST_LOGRESULT(NAME, SUCCESS, TIME) UT_TestManager::get().logResult(NAME, SUCCESS, TIME) |
Use this define to log information into the result table. More... | |
#define | TEST_REGISTER_FN(name, method) |
#define | TEST_REGISTER(name, classname, method) |
#define | TEST_UNIT_MAIN() |
#define TEST_LOGRESULT | ( | NAME, | |
SUCCESS, | |||
TIME | |||
) | UT_TestManager::get().logResult(NAME, SUCCESS, TIME) |
Use this define to log information into the result table.
Definition at line 250 of file UT_TestManager.h.
#define TEST_REGISTER | ( | name, | |
classname, | |||
method | |||
) |
Use this macro after your test class is declared. It will create a static instance of your class that then registers your 'bool classname::method()' with the test manager. Your method should return true if the test succeeded, false otherwise. The name is the label that will be used for invoking this specific test.
Definition at line 274 of file UT_TestManager.h.
#define TEST_REGISTER_FN | ( | name, | |
method | |||
) |
Use this macro after your test function is declared. It will register your method with the test manager. Your method should return true if the test succeeded, false otherwise. The name is the label that will be used for invoking this specific test.
Definition at line 257 of file UT_TestManager.h.
#define TEST_UNIT_MAIN | ( | ) |
Definition at line 290 of file UT_TestManager.h.