#include <TestDB.h>
CU_Test is a linked list of unit tests. Each test has a name and a callable test function, as well as links to the next and previous tests in the list. A test also holds a jmp_buf reference for use in implementing fatal assertions.
Generally, the linked list includes tests which are associated with each other in a CU_Suite. As a result, tests are run in the order in which they are added to a suite (see CU_add_test()).
In the current implementation, the name of each CU_Test in a suite must have a unique name. There is no restriction on the test function. This means that the same function could, in principle, be called more than once as long as it is registered with different tests having distinct names.
Data Fields | |
char * | pName |
Test name. | |
CU_TestFunc | pTestFunc |
Pointer to the test function. | |
jmp_buf * | pJumpBuf |
Jump buffer for setjmp/longjmp test abort mechanism. | |
CU_Test * | pNext |
Pointer to the next test in linked list. | |
CU_Test * | pPrev |
Pointer to the previous test in linked list. |
|
Jump buffer for setjmp/longjmp test abort mechanism.
|
|
Test name.
|
|
Pointer to the next test in linked list.
|
|
Pointer to the previous test in linked list.
|
|
Pointer to the test function.
|