| [ CCUnit project page ] | [ CCUnit home page ] |
|
Data Structures | |
| struct | CCUnitTest |
| Run Test and collect its results. More... | |
| struct | CCUnitTestFailure |
| Collects a failed test together with the failed assertion. More... | |
Typedefs | |
| typedef enum CCUnitTestType_t | CCUnitTestType_t |
| Test class type. | |
| typedef struct CCUnitTest | CCUnitTest |
| Run Test and collect its results. | |
| typedef struct CCUnitTestFailure | CCUnitTestFailure |
| Collects a failed test together with the failed assertion. | |
Enumerations | |
| enum | CCUnitTestType_t { ccunitTypeTest, ccunitTypeSuite, ccunitTypeFixture, ccunitTypeCase, ccunitTypeLast_ } |
Test class type. More... | |
Functions | |
| CCUnitTest * | ccunit_initTest (CCUnitTest *test, CCUnitTestType_t type, void(*run)(CCUnitTest *, struct CCUnitTestResult *), void(*dtor)(CCUnitTest *)) |
| Initialize Test class. | |
| void | ccunit_deleteTest (CCUnitTest *test) |
| Test class destructor. | |
| CCUnitTestFailure * | ccunit_newTestFailure (const char *file, unsigned int line, const char *condstr, const char *expect, const char *actual) |
| Create new test failure. | |
| void | ccunit_deleteTestFailure (CCUnitTestFailure *failure) |
| Delete test failure object. | |
| typedef struct CCUnitTest CCUnitTest |
Run Test and collect its results.
| typedef struct CCUnitTestFailure CCUnitTestFailure |
Collects a failed test together with the failed assertion.
| typedef enum CCUnitTestType_t CCUnitTestType_t |
Test class type.
| enum CCUnitTestType_t |
| void ccunit_deleteTest | ( | CCUnitTest * | test | ) |
Test class destructor.
| test | test object to delete. |
Referenced by destroy().

| void ccunit_deleteTestFailure | ( | CCUnitTestFailure * | failure | ) |
Delete test failure object.
| failure | failure object. |
| CCUnitTest * ccunit_initTest | ( | CCUnitTest * | test, | |
| CCUnitTestType_t | type, | |||
| void(*)(CCUnitTest *, struct CCUnitTestResult *) | run, | |||
| void(*)(CCUnitTest *) | dtor | |||
| ) |
Initialize Test class.
| test | test object to initialize. | |
| type | test type. | |
| run | run test function. | |
| dtor | destructor. |
Referenced by ccunit_newTestFixture().

| CCUnitTestFailure * ccunit_newTestFailure | ( | const char * | file, | |
| unsigned int | line, | |||
| const char * | condstr, | |||
| const char * | expect, | |||
| const char * | actual | |||
| ) |
Create new test failure.
| file | file name cause failure. | |
| line | line number cause failure. | |
| condstr | test condition as string. | |
| expect | expect value as string. | |
| actual | actual value as string. |
Referenced by ccunit_assert_test__ccunit_obj_t().

|
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Mon Aug 16 2010 21:52:39 for CCUnit by 1.7.1
|