CCUnit
2.1
A C Unit Testing Library
|
Linked list container. More...
![]() |
Modules | |
ListCell | |
Linked list cell. | |
ListIterator | |
List iterator. |
Data Structures | |
struct | CCUnitList |
list container. More... |
Typedefs | |
typedef struct CCUnitList | CCUnitList |
list container. |
Functions | |
CCUnitList * | ccunit_initList (CCUnitList *list) |
Initialize list object. | |
CCUnitList * | ccunit_newList () |
Create new list object. | |
void | ccunit_addList (CCUnitList *list, void *contents) |
Add element to list object. | |
void | ccunit_deleteList (CCUnitList *list, void(*deleteContents)(void *)) |
Delete list object. | |
CCUnitListIterator * | ccunit_initListIterator (const struct CCUnitList *list, struct CCUnitListIterator *it) |
initialize list iterator. | |
CCUnitListIterator * | ccunit_newListIterator (const struct CCUnitList *list) |
create new list iterator. | |
bool | ccunit_hasNextListIterator (struct CCUnitListIterator *it) |
Check is there next element of iterator. | |
void * | ccunit_nextListIterator (struct CCUnitListIterator *it) |
Get next element. | |
void | ccunit_deleteListIterator (struct CCUnitListIterator *it) |
delete list iterator. |
Linked list container.
typedef struct CCUnitList CCUnitList |
list container.
void ccunit_addList | ( | CCUnitList * | list, |
void * | contents | ||
) |
Add element to list object.
list | List object. |
contents | A pointer to an object to register in the list. |
References ccunit_newListCell(), CCUnitListCell::contents, length, CCUnitListCell::next, and tailp.
Referenced by addTestDef(), ccunit_addFailure(), ccunit_addResultListener(), ccunit_addTest(), ccunit_addTestFunc(), and readTestCase().
void ccunit_deleteList | ( | CCUnitList * | list, |
void(*)(void *) | deleteContents | ||
) |
Delete list object.
list | Deleting list. |
deleteContents | A pointer to the function which the object registered in the list is deleted from. |
References ccunit_deleteListCell(), CCUnitListCell::contents, head, isAllocated, CCUnitListCell::next, and safe_free.
Referenced by ccunit_deleteTestResult(), destroy(), destroyTestCaseDef(), and destroyTestSuiteDef().
|
inline |
delete list iterator.
it | iterator to delete. |
References CCUnitListIterator::isAllocated, and safe_free.
Referenced by printFailures().
bool ccunit_hasNextListIterator | ( | struct CCUnitListIterator * | it | ) |
Check is there next element of iterator.
it | An iterator. |
References CCUnitListIterator::current.
Referenced by ccunit_nextListIterator().
CCUnitList * ccunit_initList | ( | CCUnitList * | list | ) |
Initialize list object.
list | initializing list. |
References head, isAllocated, length, and tailp.
Referenced by ccunit_newList(), ccunit_newTestCase(), ccunit_newTestResult(), ccunit_newTestSuite(), ccunit_newTestSuiteDef(), and newTestCaseDef().
|
inline |
initialize list iterator.
list | An owner list of iterator. |
it | Iterator to initialize. |
References CCUnitListIterator::current, head, and CCUnitListIterator::isAllocated.
Referenced by _ccunit_endTest(), _ccunit_startTest(), ccunit_addFailure(), ccunit_newListIterator(), printPrototypes(), printSuite(), printTestCase(), and run().
|
inline |
Create new list object.
References ccunit_initList(), and isAllocated.
CCUnitListIterator* ccunit_newListIterator | ( | const struct CCUnitList * | list | ) |
create new list iterator.
list | An owner list of iterator. |
References ccunit_initListIterator(), and CCUnitListIterator::isAllocated.
Referenced by ccunit_failures().
void* ccunit_nextListIterator | ( | struct CCUnitListIterator * | it | ) |
Get next element.
it | An Iterator. |
References ccunit_hasNextListIterator(), CCUnitListCell::contents, CCUnitListIterator::current, and CCUnitListCell::next.
Referenced by _ccunit_endTest(), _ccunit_startTest(), ccunit_addFailure(), printFailures(), printPrototypes(), printSuite(), printTestCase(), and run().
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sat Jul 13 2013 15:09:15 for CCUnit by
![]() |