[ CCUnit project page ] |  | [ CCUnit home page ]

関数 | 変数

# CCUnitTestFixture.c

TestFixture module implementation. [詳細]

`#include <ccunit/CCUnitTestFixture.h>`
`#include <ccunit/CCUnitTestResult.h>`
`#include <assert.h>`
`#include <setjmp.h>`
CCUnitTestFixture.cのインクルード依存関係図

## 関数
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.

## 関数

void _ccunit_endTest | ( | CCUnitTestResult * | result,
|  | struct CCUnitTestCase * | test |
| ) |  |  |

void _ccunit_startTest | ( | CCUnitTestResult * | result,
|  | struct CCUnitTestCase * | test |
| ) |  |  |

CCUnitTestCase* ccunit_addNewTestCase | ( | CCUnitTestFixture * | fixture,
|  | const char * | name,
|  | const char * | desc,
|  | void(*)() | runTest |
| ) |  |  |

参照先 ccunit_addTestCase(), ccunit_newTestCase(), と runTest().

関数の呼び出しグラフ:

void ccunit_addTestCase | ( | CCUnitTestFixture * | fixture,
|  | CCUnitTestCase * | testCase |
| ) |  |  | `[inline]`

参照先 ccunit_addList().

参照元 ccunit_addNewTestCase().

関数の呼び出しグラフ:

呼出しグラフ:

CCUnitTestFixture* ccunit_newTestFixture | ( | const char * | name,
|  | CCUnitTestFunc * | setUp,
|  | CCUnitTestFunc * | tearDown |
| ) |  |  |

参照先 ccunit_initList(), ccunit_initTest(), destroy(), run(), と safe_strdup.

関数の呼び出しグラフ:

struct CCUnitTestResult* ccunit_runTestFixture | ( | CCUnitTestFixture * | f | ) | `[read]`

参照先 ccunit_newTestResult().

関数の呼び出しグラフ:

void ccunit_setTestFixtureSetup | ( | CCUnitTestFixture * | fixture,
|  | CCUnitTestFunc * | setup_setUp,
|  | CCUnitTestFunc * | setup_tearDown |
| ) |  |  | `[inline]`

参照先 ccunit_deleteTestCase().

関数の呼び出しグラフ:

static void destroy | ( | CCUnitTest * | test | ) | `[static]`

Destruct test fixture.

引数:

  | test | destruct test.

参照先 ccunit_deleteList(), ccunit_deleteTestCase(), ccunit_deleteTestFunc(), safe_free, と CCUnitTest::type.

参照元 ccunit_newTestFixture().

関数の呼び出しグラフ:

呼出しグラフ:

static void run | ( | CCUnitTest * | test,
|  | CCUnitTestResult * | result |
| ) |  |  | `[static]`

Runs the test fixture and collects the results in CCUnitTestResult.

引数:

  | test | A test to run.
  | result | A result container.

参照先 _ccunit_endTest(), _ccunit_runTest_env, _ccunit_startTest(), ccunit_addFailure(), ccunit_initListIterator(), ccunit_nextListIterator(), runTest(), CCUnitTestCase::setUp, と CCUnitTest::type.

参照元 ccunit_newTestFixture().

関数の呼び出しグラフ:

呼出しグラフ:

static CCUnitTestFailure* runTest | ( | CCUnitTestCase * | testCase,
|  | CCUnitTestFunc * | setUp,
|  | CCUnitTestFunc * | tearDown,
|  | CCUnitTestResult * | result |
| ) |  |  | `[static]`

Runs the bare test sequence.

戻り値:
  failure

参照先 _ccunit_runTest_env, ccunit_addFailure(), CCUnitTestResult::runCount, と CCUnitTestFunc::runTest.

参照元 ccunit_addNewTestCase(), と run().

関数の呼び出しグラフ:

呼出しグラフ:

| hosts this site. |  | Send comments to: CCUnit Developer |