[ CCUnit project page ] [ CCUnit home page ]
データ構造 | 関数 | 変数

_Line
[_ReadSuite]

Read one line module. [詳細]

_Lineのコラボレーション図

データ構造

struct  _CCUnitLine
 Read line. [詳細]

関数

static int readline ()
 Get one line from stream.
static char * readDocCommentContents ()
 read contents of doc comment.
static char * readDocComment ()
 read document comment.
static const char * getTestName (CCUnitTestType_t type, const char *str)
 get test def.
static const char * getEndOfTest (CCUnitTestType_t type, const char *str)
 get end of test string.
static _CCUnitFuncDefreadTestFunc (const char *type, const char *prefix, const char *desc)
 read test funcdef.
static void readTestCase (_CCUnitTestSuiteDef *suite, const char *cname)
 read test case function.
static void readSuite (_CCUnitTestSuiteDef *suite)
 read test suite def.

変数

static struct _CCUnitLine line
 Current processing line.
static const char * testTypeStr []

説明

Read one line module.


関数

static const char* getEndOfTest ( CCUnitTestType_t  type,
const char *  str 
) [static]

get end of test string.

引数:
type test type.
str string.
戻り値:
name of test.

参照先 ccunit_dbg(), ccunit_log(), と testTypeStr.

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

関数の呼び出しグラフ:

呼出しグラフ:

static const char* getTestName ( CCUnitTestType_t  type,
const char *  str 
) [static]

get test def.

引数:
type test type.
str comment string.
戻り値:
test name.

参照先 ccunit_dbg(), ccunit_err(), line, lno, と testTypeStr.

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

関数の呼び出しグラフ:

呼出しグラフ:

static char* readDocComment (  )  [static]

read document comment.

戻り値:
comment content if matched, or NULL if not matched.

参照先 ccunit_dbg(), line, lno, readDocCommentContents(), と str.

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

関数の呼び出しグラフ:

呼出しグラフ:

static char* readDocCommentContents (  )  [static]

read contents of doc comment.

戻り値:
comment string. or NULL when error occurred.

参照先 ccunit_dbg(), ccunit_err(), ccunit_log(), length, line, lno, readline(), と str.

参照元 readDocComment().

関数の呼び出しグラフ:

呼出しグラフ:

static int readline (  )  [static]

Get one line from stream.

This func copies a read line on the global variable line.

戻り値:
When reading succeeds, value except for the zero is returned. When an error occurs, a zero is returned.

参照先 capacity, ccunit_log(), ifp, length, line, lno, と str.

参照元 readDocCommentContents(), readSuite(), readTestCase(), と readTestFunc().

関数の呼び出しグラフ:

呼出しグラフ:

static void readSuite ( _CCUnitTestSuiteDef suite  )  [static]

read test suite def.

引数:
suite test suitedef.

参照先 addTestSuiteDef(), ccunit_err(), ccunit_newTestSuiteDef(), ccunitTypeSuite, ccunitTypeTestCase, deleteFuncDef(), fname, getEndOfTest(), getTestName(), line, lno, readDocComment(), readline(), readTestCase(), readTestFunc(), safe_free, と str.

参照元 ccunit_readSuite().

関数の呼び出しグラフ:

呼出しグラフ:

static void readTestCase ( _CCUnitTestSuiteDef suite,
const char *  cname 
) [static]

read test case function.

引数:
suite parent suite.
cname test case name to read.

参照先 addTestCaseDef(), ccunit_addList(), ccunit_log(), ccunitTypeTestCase, getEndOfTest(), getTestName(), _CCUnitTestDef::name, newTestCaseDef(), readDocComment(), readline(), readTestFunc(), safe_free, _CCUnitTestCaseDef::testdef, と _CCUnitTestCaseDef::testFuncs.

参照元 readSuite().

関数の呼び出しグラフ:

呼出しグラフ:

static _CCUnitFuncDef* readTestFunc ( const char *  type,
const char *  prefix,
const char *  desc 
) [static]

read test funcdef.

引数:
type required type string.
prefix required func name prefix.
desc description.
戻り値:
funcdef object.

参照先 ccunit_dbg(), ccunit_err(), line, newFuncDef(), readline(), と str.

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

関数の呼び出しグラフ:

呼出しグラフ:


変数

struct _CCUnitLine line [static]
const char* testTypeStr[] [static]
初期値:
 {
  "case", "suite"
}

参照元 getEndOfTest(), と getTestName().

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