Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

CU_Test Struct Reference
[Framework]

#include <TestDB.h>


Detailed Description

CUnit test case data type.

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.

See also:
CU_Suite

CU_TestRegistry


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_TestpNext
 Pointer to the next test in linked list.
CU_TestpPrev
 Pointer to the previous test in linked list.


Field Documentation

jmp_buf* CU_Test::pJumpBuf
 

Jump buffer for setjmp/longjmp test abort mechanism.

char* CU_Test::pName
 

Test name.

struct CU_Test* CU_Test::pNext
 

Pointer to the next test in linked list.

struct CU_Test* CU_Test::pPrev
 

Pointer to the previous test in linked list.

CU_TestFunc CU_Test::pTestFunc
 

Pointer to the test function.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 28 12:36:10 2005 for CUnit by  doxygen 1.3.9.1