CCUnit  2.1
A C Unit Testing Library
 全て データ構造 ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義 グループ ページ
データ構造 | 関数 | 変数
_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.

引数:
typetest type.
strstring.
戻り値:
name of test.

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

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

関数の呼び出しグラフ:

呼出しグラフ:

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

get test def.

引数:
typetest type.
strcomment string.
戻り値:
test name.

参照先 ccunit_dbg(), ccunit_err(), ccunitTypeSuite, 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.

引数:
suitetest suitedef.

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

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

関数の呼び出しグラフ:

呼出しグラフ:

static void readTestCase ( _CCUnitTestSuiteDef suite,
const char *  cname 
)
static
static _CCUnitFuncDef* readTestFunc ( const char *  type,
const char *  prefix,
const char *  desc 
)
static

read test funcdef.

引数:
typerequired type string.
prefixrequired func name prefix.
descdescription.
戻り値:
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