#include <TestDB.h>
CU_Suite is a linked list of CU_Test containers. Each suite has a name and count of associated unit tests. It also holds a pointer to optional initialization and cleanup functions. If non-NULL, these are called before and after running the suite's tests, respectively. In addition, the suite holds a pointer to the head of the linked list of associated CU_Test objects. Finally, pointers to the next and previous suites in the linked list are maintained.
Generally, the linked list includes suites which are associated with each other in a CU_TestRegistry. As a result, suites are run in the order in which they are registered (see CU_add_suite()).
In the current implementation, the name of each CU_Suite in a test registry must have a unique name. There is no restriction on the contained tests. This means that the same CU_Test could, in principle, be run more than once as long as it is registered with different suites having distinct names.
Data Fields | |
char * | pName |
Suite name. | |
CU_pTest | pTest |
Pointer to the 1st test in the suite. | |
CU_InitializeFunc | pInitializeFunc |
Pointer to the suite initialization function. | |
CU_CleanupFunc | pCleanupFunc |
Pointer to the suite cleanup function. | |
unsigned int | uiNumberOfTests |
Number of tests in the suite. | |
CU_Suite * | pNext |
Pointer to the next suite in linked list. | |
CU_Suite * | pPrev |
Pointer to the previous suite in linked list. |
|
Pointer to the suite cleanup function.
|
|
Pointer to the suite initialization function.
|
|
Suite name.
|
|
Pointer to the next suite in linked list.
|
|
Pointer to the previous suite in linked list.
|
|
Pointer to the 1st test in the suite.
|
|
Number of tests in the suite.
|