[ CCUnit project page ] [ CCUnit home page ]
Data Structures | Defines | Typedefs | Functions

CCUnitTestCase.h File Reference

TestCase module. More...

#include <ccunit/CCUnitConfig.h>
#include <ccunit/CCUnitList.h>
#include <ccunit/CCUnitTest.h>
#include <ccunit/CCUnitTestFunc.h>
#include <ccunit/CCUnitTestResult.h>
Include dependency graph for CCUnitTestCase.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CCUnitTestCase
 Wraps a test case with setUp and tearDown function. More...
struct  CCUnitTestCaseDfn
 TestCase definition structure. More...

Defines

#define CCUNIT_ADDNEWTESTFUNC(TESTCASE, FN)   ccunit_addNewTestFunc (TESTCASE, #FN, NULL, FN)

Typedefs

typedef struct CCUnitTestCase CCUnitTestCase
 Wraps a test case with setUp and tearDown function.
typedef struct CCUnitTestCaseDfn CCUnitTestCaseDfn
 TestCase definition structure.

Functions

CCUnitTestCaseccunit_newTestCase (const char *name)
 create new test case.
void ccunit_deleteTestCase (CCUnitTestCase *testCase)
 Destructs test case.
void ccunit_addTestFunc (CCUnitTestCase *testCase, CCUnitTestFunc *f)
 add test function to test case.
CCUnitTestFuncccunit_addNewTestFunc (CCUnitTestCase *testCase, const char *name, const char *desc, void(*runTest)())
 add new test func to test case.
struct CCUnitTestResultccunit_runTestCase (CCUnitTestCase *testCase)
 run test cases and collect its results.

Detailed Description

TestCase module.

SourceForge.jp hosts this site. Send comments to: CCUnit Developer