CCUnit project page CCUnit home page

Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

_Line
[_ReadSuite]


Detailed Description

Read one line module.


Data Structures

struct  _CCUnitLine
 Read line. More...


Functions

int readline ()
 Get one line from stream.

char * readDocCommentContents ()
 read contents of doc comment.

char * readDocComment ()
 read document comment.

const char * getTestName (CCUnitTestType_t type, const char *str)
 get test def.

const char * getEndOfTest (CCUnitTestType_t type, const char *str)
 get end of test string.

_CCUnitFuncDefreadTestCase (const char *type, const char *prefix, const char *desc)
 read test casedef.

void setFixtureFunc (_CCUnitFuncDef **fpp, _CCUnitFuncDef *fp)
 set fixture function.

void readTestFixture (_CCUnitTestSuiteDef *suite, const char *cname)
 read test fixture function.

void readSuite (_CCUnitTestSuiteDef *suite)
 read test suite def.


Variables

_CCUnitLine line
 Current processing line.

const char * testTypeStr []

Function Documentation

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

get end of test string.

Parameters:
type test type.
str string.
Returns:
name of test.

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

get test def.

Parameters:
type test type.
str comment string.
Returns:
test name.

char* readDocComment  )  [static]
 

read document comment.

Returns:
comment content if matched, or NULL if not matched.

char* readDocCommentContents  )  [static]
 

read contents of doc comment.

Returns:
comment string. or NULL when error occurred.

int readline  )  [static]
 

Get one line from stream.

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

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

void readSuite _CCUnitTestSuiteDef suite  )  [static]
 

read test suite def.

Parameters:
suite test suitedef.

_CCUnitFuncDef* readTestCase const char *  type,
const char *  prefix,
const char *  desc
[static]
 

read test casedef.

Parameters:
type required type string.
prefix required case name prefix.
desc description.
Returns:
funcdef object.

void readTestFixture _CCUnitTestSuiteDef suite,
const char *  cname
[static]
 

read test fixture function.

Parameters:
suite parent suite.
cname test fixture name to read.

void setFixtureFunc _CCUnitFuncDef **  fpp,
_CCUnitFuncDef fp
[static]
 

set fixture function.

Parameters:
fpp fixture function adderss.
fp fixture function to set.

Variable Documentation

struct _CCUnitLine line [static]
 

Current processing line.

const char* testTypeStr[] [static]
 

Initial value:

 {
  "fixture", "suite"
}

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