TestFixture module implementation.
[詳細]
#include <ccunit/CCUnitTestFixture.h>
#include <ccunit/CCUnitTestResult.h>
#include <assert.h>
#include <setjmp.h>
関数 |
| void | _ccunit_startTest (CCUnitTestResult *result, struct CCUnitTestCase *test) |
| void | _ccunit_endTest (CCUnitTestResult *result, struct CCUnitTestCase *test) |
| void | ccunit_addTestCase (CCUnitTestFixture *fixture, CCUnitTestCase *testCase) |
| CCUnitTestCase * | ccunit_addNewTestCase (CCUnitTestFixture *fixture, const char *name, const char *desc, void(*runTest)()) |
| static CCUnitTestFailure * | runTest (CCUnitTestCase *testCase, CCUnitTestFunc *setUp, CCUnitTestFunc *tearDown, CCUnitTestResult *result) |
| | Runs the bare test sequence.
|
| static void | run (CCUnitTest *test, CCUnitTestResult *result) |
| | Runs the test fixture and collects the results in CCUnitTestResult.
|
| static void | destroy (CCUnitTest *test) |
| | Destruct test fixture.
|
| CCUnitTestFixture * | ccunit_newTestFixture (const char *name, CCUnitTestFunc *setUp, CCUnitTestFunc *tearDown) |
| void | ccunit_setTestFixtureSetup (CCUnitTestFixture *fixture, CCUnitTestFunc *setup_setUp, CCUnitTestFunc *setup_tearDown) |
| struct CCUnitTestResult * | ccunit_runTestFixture (CCUnitTestFixture *f) |
変数 |
| jmp_buf | _ccunit_runTest_env |
| | run tests exception environment.
|
| CCUnitTestFailure * | _ccunit_testFailure |
| | run tests exception.
|
説明
TestFixture module implementation.
関数
| CCUnitTestCase* ccunit_addNewTestCase |
( |
CCUnitTestFixture * |
fixture, |
|
|
const char * |
name, |
|
|
const char * |
desc, |
|
|
void(*)() |
runTest | |
|
) |
| | |
| void ccunit_addTestCase |
( |
CCUnitTestFixture * |
fixture, |
|
|
CCUnitTestCase * |
testCase | |
|
) |
| | [inline] |
| static void destroy |
( |
CCUnitTest * |
test |
) |
[static] |