CCUnit: _ReadSuite

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

モジュール | 関数

# _ReadSuite
[MakeSuite]

Read test func definitions from test source code. [詳細]

_ReadSuiteのコラボレーション図

## モジュール
| _Line

| Read one line module.
## 関数
void | ccunit_readSuite (const char *fname, _CCUnitTestSuiteDef *parent)
| read test unit suite from specified stream.
static void | destroyTestDef (_CCUnitTestDef *test)
| destroy test def.
static _CCUnitTestDef * | initTestDef (_CCUnitTestDef *test, CCUnitTestType_t type, const char *name)
| init test def.
static void | deleteTestDef (_CCUnitTestDef *test)
| delete test def.
static void | destroyTestSuiteDef (_CCUnitTestSuiteDef *suite)
| destroy test suite def.
_CCUnitTestSuiteDef * | ccunit_newTestSuiteDef (const char *name)
| create new test suite def.
void | ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef *suite)
| delete test suite def.
static _CCUnitTestDef * | addTestDef (_CCUnitTestSuiteDef *suite, _CCUnitTestDef *test)
| add test to test suite.
static _CCUnitTestDef * | addTestSuiteDef (_CCUnitTestSuiteDef *suite, _CCUnitTestSuiteDef *test)
| add test suite to test suite.
static _CCUnitTestDef * | addTestCaseDef (_CCUnitTestSuiteDef *suite, _CCUnitTestCaseDef *test)
| add test case to test suite.
static _CCUnitFuncDef * | newFuncDef (const char *scope, const char *type, const char *name, const char *desc)
| create new test func.
static void | deleteFuncDef (_CCUnitFuncDef *func)
| delete test func def.
static void | destroyTestCaseDef (_CCUnitTestCaseDef *testCase)
| destroy test case def.
static _CCUnitTestCaseDef * | newTestCaseDef (const char *name)
| create new test case def.

## 説明

Read test func definitions from test source code.

## 関数

static _CCUnitTestDef* addTestCaseDef | ( | _CCUnitTestSuiteDef * | suite,
|  | _CCUnitTestCaseDef * | test |
| ) |  |  | `[inline, static]`

add test case to test suite.

引数:

  | suite | test suite to add.
  | test | test case.

戻り値:
  added test.

参照先 addTestDef(), ccunit_log(), _CCUnitTestDef::name, と _CCUnitTestCaseDef::testdef.

参照元 readTestCase().

関数の呼び出しグラフ:

呼出しグラフ:

static _CCUnitTestDef* addTestDef | ( | _CCUnitTestSuiteDef * | suite,
|  | _CCUnitTestDef * | test |
| ) |  |  | `[static]`

add test to test suite.

引数:

  | suite | test suite to add.
  | test | test group.

戻り値:
  added test.

参照先 ccunit_addList(), と _CCUnitTestSuiteDef::testdefs.

参照元 addTestCaseDef(), と addTestSuiteDef().

関数の呼び出しグラフ:

呼出しグラフ:

static _CCUnitTestDef* addTestSuiteDef | ( | _CCUnitTestSuiteDef * | suite,
|  | _CCUnitTestSuiteDef * | test |
| ) |  |  | `[inline, static]`

add test suite to test suite.

引数:

  | suite | test suite to add.
  | test | test suite.

戻り値:
  added test.

参照先 addTestDef(), ccunit_log(), _CCUnitTestDef::name, と _CCUnitTestSuiteDef::testdef.

参照元 readSuite().

関数の呼び出しグラフ:

呼出しグラフ:

void ccunit_deleteTestSuiteDef | ( | _CCUnitTestSuiteDef * | suite | ) | `[inline]`

delete test suite def.

引数:

  | suite | test suite def.

参照先 deleteTestDef(), と _CCUnitTestSuiteDef::testdef.

関数の呼び出しグラフ:

_CCUnitTestSuiteDef* ccunit_newTestSuiteDef | ( | const char * | name | ) |

create new test suite def.

引数:

  | name | suite name.

戻り値:
  created testdef.

参照先 ccunit_initList(), ccunitTypeSuite, _CCUnitTestDef::dtor, initTestDef(), _CCUnitTestSuiteDef::testdef, と _CCUnitTestSuiteDef::testdefs.

参照元 readSuite().

関数の呼び出しグラフ:

呼出しグラフ:

void ccunit_readSuite | ( | const char * | fname,
|  | _CCUnitTestSuiteDef * | parent |
| ) |  |  |

read test unit suite from specified stream.

引数:

  | fname | test unit source code file.
  | parent | [out] test suite to adding read test.

参照先 ccunit_err(), _CCUnitLine::fname, _CCUnitLine::ifp, line, readSuite(), safe_free, と _CCUnitLine::str.

関数の呼び出しグラフ:

static void deleteFuncDef | ( | _CCUnitFuncDef * | func | ) | `[static]`

delete test func def.

引数:

  | func | test func def to delete.

参照先 _CCUnitFuncDef::desc, _CCUnitFuncDef::name, safe_free, _CCUnitFuncDef::scope, と _CCUnitFuncDef::type.

参照元 destroyTestCaseDef(), と readSuite().

呼出しグラフ:

static void deleteTestDef | ( | _CCUnitTestDef * | test | ) | `[static]`

delete test def.

引数:

  | test | testdef to delete.

参照先 _CCUnitTestDef::dtor, と safe_free.

参照元 ccunit_deleteTestSuiteDef(), と destroyTestSuiteDef().

呼出しグラフ:

static void destroyTestCaseDef | ( | _CCUnitTestCaseDef * | testCase | ) | `[static]`

destroy test case def.

引数:

  | testCase | test case def to destroy.

参照先 ccunit_deleteList(), deleteFuncDef(), destroyTestDef(), _CCUnitTestCaseDef::testdef, と _CCUnitTestCaseDef::testFuncs.

関数の呼び出しグラフ:

static void destroyTestDef | ( | _CCUnitTestDef * | test | ) | `[static]`

destroy test def.

引数:

  | test | testdef to destroy.

参照先 _CCUnitTestDef::idname, _CCUnitTestDef::name, と safe_free.

参照元 destroyTestCaseDef(), と destroyTestSuiteDef().

呼出しグラフ:

static void destroyTestSuiteDef | ( | _CCUnitTestSuiteDef * | suite | ) | `[static]`

destroy test suite def.

引数:

  | suite | test suite def.

参照先 ccunit_deleteList(), deleteTestDef(), destroyTestDef(), _CCUnitTestSuiteDef::testdef, と _CCUnitTestSuiteDef::testdefs.

関数の呼び出しグラフ:

static _CCUnitTestDef* initTestDef | ( | _CCUnitTestDef * | test,
|  | CCUnitTestType_t | type,
|  | const char * | name |
| ) |  |  | `[static]`

init test def.

引数:

  | test | testdef.
  | type | test type.
  | name | test name.

参照先 _CCUnitTestDef::idname, _CCUnitTestDef::name, safe_strdup, と _CCUnitTestDef::type.

参照元 ccunit_newTestSuiteDef(), と newTestCaseDef().

呼出しグラフ:

static _CCUnitFuncDef* newFuncDef | ( | const char * | scope,
|  | const char * | type,
|  | const char * | name,
|  | const char * | desc |
| ) |  |  | `[static]`

create new test func.

引数:

  | scope | scope.
  | type | return type of func.
  | name | func name.
  | desc | description.

戻り値:
  new test func def.

参照先 ccunit_log(), _CCUnitFuncDef::desc, _CCUnitFuncDef::name, safe_strdup, _CCUnitFuncDef::scope, と _CCUnitFuncDef::type.

参照元 readTestFunc().

関数の呼び出しグラフ:

呼出しグラフ:

static _CCUnitTestCaseDef* newTestCaseDef | ( | const char * | name | ) | `[static]`

create new test case def.

引数:

  | name | test case name.

参照先 ccunit_initList(), ccunit_log(), ccunitTypeTestCase, _CCUnitTestDef::dtor, initTestDef(), _CCUnitTestCaseDef::testdef, と _CCUnitTestCaseDef::testFuncs.

参照元 readTestCase().

関数の呼び出しグラフ:

呼出しグラフ:

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