CCUnit 2.1 A C Unit Testing Library

- メインページ
- 関連ページ
- モジュール
- データ構造
- ファイル

- ファイル一覧
- グローバル

全て データ構造 ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義 グループ ページ
関数 | 変数
CCUnitTestCase.c

TestCase module implementation. [詳細]

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

## 関数
void | _ccunit_startTest (CCUnitTestResult *result, CCUnitTestFunc *test)
| Informs the result that a test will be started.
void | _ccunit_endTest (CCUnitTestResult *result, CCUnitTestFunc *test)
| Informs the result that a test was completed.
void | ccunit_addTestFunc (CCUnitTestCase *testCase, CCUnitTestFunc *f)
| add test function to test case.
CCUnitTestFunc * | ccunit_addNewTestFunc (CCUnitTestCase *testCase, const char *name, const char *desc, void(*runTest)())
| add new test func to test case.
static CCUnitTestFailure * | runTest (CCUnitTestFunc *testFunc, CCUnitTestFunc *setUp, CCUnitTestFunc *tearDown, CCUnitTestResult *result)
| Runs the bare test sequence.
static void | run (CCUnitTest *test, CCUnitTestResult *result)
| Runs the test case and collects the results in CCUnitTestResult.
static void | destroy (CCUnitTest *test)
| Destruct test case.
CCUnitTestCase * | ccunit_newTestCase (const char *name)
| create new test case.
void | ccunit_deleteTestCase (CCUnitTestCase *testCase)
| Destructs test case.
struct CCUnitTestResult * | ccunit_runTestCase (CCUnitTestCase *testCase)
| run test cases and collect its results.

## 変数
jmp_buf | _ccunit_runTest_env
| run tests exception environment.
CCUnitTestFailure * | _ccunit_testFailure
| run tests exception.

## 説明

TestCase module implementation.

## 関数

static void destroy | ( | CCUnitTest * | test | ) |
| static

Destruct test case.

引数:

  test | destruct test.

参照先 ccunit_deleteList(), ccunit_deleteTestFunc(), ccunitTypeTestCase, CCUnitTestCase::name, safe_free, CCUnitTestCase::setUp, CCUnitTestCase::setUpBeforeClass, CCUnitTestCase::tearDown, CCUnitTestCase::tearDownAfterClass, CCUnitTestCase::testFuncs, と CCUnitTest::type.

参照元 ccunit_newTestCase().

関数の呼び出しグラフ:

呼出しグラフ:

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

Runs the test case 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(), ccunitTypeTestCase, CCUnitTestFunc::runTest, runTest(), CCUnitTestCase::setUp, CCUnitTestCase::setUpBeforeClass, CCUnitTestCase::tearDown, CCUnitTestCase::tearDownAfterClass, CCUnitTestFailure::testFunc, CCUnitTestCase::testFuncs, と CCUnitTest::type.

参照元 ccunit_initTest(), と ccunit_newTestCase().

関数の呼び出しグラフ:

呼出しグラフ:

static CCUnitTestFailure* runTest | ( | CCUnitTestFunc * | testFunc,
|  | CCUnitTestFunc * | setUp,
|  | CCUnitTestFunc * | tearDown,
|  | CCUnitTestResult * | result
| ) |  |
| static

Runs the bare test sequence.

戻り値:
  failure

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

参照元 ccunit_addNewTestFunc(), ccunit_newTestFunc(), と run().

関数の呼び出しグラフ:

呼出しグラフ:

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