CCUnit
2.1
A C Unit Testing Library
|
Read one line module. More...
![]() |
Data Structures | |
struct | _CCUnitLine |
Read line. More... |
Functions | |
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 _CCUnitFuncDef * | readTestFunc (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. |
Variables | |
static struct _CCUnitLine | line |
Current processing line. | |
static const char * | testTypeStr [] |
Read one line module.
|
static |
get end of test string.
type | test type. |
str | string. |
References ccunit_dbg(), ccunit_log(), ccunitTypeSuite, and testTypeStr.
Referenced by readSuite(), and readTestCase().
|
static |
get test def.
type | test type. |
str | comment string. |
References ccunit_dbg(), ccunit_err(), ccunitTypeSuite, line, lno, and testTypeStr.
Referenced by readSuite(), and readTestCase().
|
static |
read document comment.
References ccunit_dbg(), line, lno, readDocCommentContents(), and str.
Referenced by readSuite(), and readTestCase().
|
static |
read contents of doc comment.
References ccunit_dbg(), ccunit_err(), ccunit_log(), length, line, lno, readline(), and str.
Referenced by readDocComment().
|
static |
Get one line from stream.
This func copies a read line on the global variable line
.
References capacity, ccunit_log(), ifp, length, line, lno, and str.
Referenced by readDocCommentContents(), readSuite(), readTestCase(), and readTestFunc().
|
static |
read test suite def.
suite | test suitedef. |
References addTestSuiteDef(), ccunit_err(), ccunit_newTestSuiteDef(), ccunitTypeSuite, ccunitTypeTestCase, deleteFuncDef(), fname, getEndOfTest(), getTestName(), line, lno, readDocComment(), readline(), readTestCase(), readTestFunc(), safe_free, and str.
Referenced by ccunit_readSuite(), and readTestCase().
|
static |
read test case function.
suite | parent suite. |
cname | test case name to read. |
References addTestCaseDef(), addTestSuiteDef(), ccunit_addList(), ccunit_err(), ccunit_log(), ccunit_newTestSuiteDef(), ccunitTypeSuite, ccunitTypeTestCase, fname, getEndOfTest(), getTestName(), line, lno, _CCUnitTestDef::name, newTestCaseDef(), readDocComment(), readline(), readSuite(), readTestFunc(), safe_free, _CCUnitTestCaseDef::testdef, and _CCUnitTestCaseDef::testFuncs.
Referenced by readSuite().
|
static |
read test funcdef.
type | required type string. |
prefix | required func name prefix. |
desc | description. |
References ccunit_dbg(), ccunit_err(), line, newFuncDef(), readline(), and str.
Referenced by readSuite(), and readTestCase().
|
static |
Current processing line.
Referenced by ccunit_newTestFailure(), ccunit_readSuite(), getTestName(), readDocComment(), readDocCommentContents(), readline(), readSuite(), readTestCase(), and readTestFunc().
|
static |
Referenced by getEndOfTest(), and getTestName().
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sat Jul 13 2013 15:09:16 for CCUnit by
![]() |