Phoenix
Object-oriented orthogonally persistent operating system
|
Unit tests related definitions reside in this namespace. More...
Classes | |
class | TestDesc |
Test descriptor. More... | |
class | TestValueBase |
Base class for TestValue. More... | |
class | TestException |
Exceptions during a test (e.g. More... | |
class | TestValue |
Class for wrapping all values being tested in tests. More... | |
Functions | |
bool | __ut_InitStubs () |
Environment-specific stubs definition module must provide this function which is called by the framework before any test is executed. | |
void * | __ut_malloc (const char *file, int line, unsigned long size, unsigned long align=0) |
Allocate memory block. | |
void | __ut_mfree (void *ptr) |
Free memory block. | |
void | __ut_putc (char c) |
Output character to the test log. | |
void | __ut_trace (const char *file, int line, const char *msg,...) |
Output message to the test log. | |
void | __ut_vtrace (const char *file, int line, const char *msg, __ut_va_list args) |
Output message to the test log. | |
void | __ut_hit_value () |
Increment tested values statistics. | |
void | __ut_hit_assert () |
Increment assertions statistics. | |
void | __ut_user_fault (const char *file, int line, const char *desc,...) |
Throw user requested fault. | |
Variables | |
const char * | __ut_test_description |
Description provided in the test makefile. |
Unit tests related definitions reside in this namespace.
void ut::__ut_hit_assert | ( | ) |
Increment assertions statistics.
void ut::__ut_hit_value | ( | ) |
Increment tested values statistics.
bool ut::__ut_InitStubs | ( | ) |
Environment-specific stubs definition module must provide this function which is called by the framework before any test is executed.
void * ut::__ut_malloc | ( | const char * | file, |
int | line, | ||
unsigned long | size, | ||
unsigned long | align = 0 |
||
) |
Allocate memory block.
void ut::__ut_mfree | ( | void * | ptr | ) |
Free memory block.
void ut::__ut_putc | ( | char | c | ) |
Output character to the test log.
void ut::__ut_trace | ( | const char * | file, |
int | line, | ||
const char * | msg, | ||
... | |||
) |
Output message to the test log.
void ut::__ut_user_fault | ( | const char * | file, |
int | line, | ||
const char * | desc, | ||
... | |||
) |
Throw user requested fault.
Use UT_FAIL macro to call this function.
void ut::__ut_vtrace | ( | const char * | file, |
int | line, | ||
const char * | msg, | ||
__ut_va_list | args | ||
) |
Output message to the test log.
const char* ut::__ut_test_description |
Description provided in the test makefile.