CCUnit project page CCUnit home page

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

CCUnitReadSuite.c File Reference


Detailed Description

ReadSuite module implementation.

#include <ccunit/CCUnitMakeSuite.h>
#include <ccunit/CCUnitLogMessage.h>
#include <ctype.h>
#include <errno.h>

Include dependency graph for CCUnitReadSuite.c:

Include dependency graph

Data Structures

struct  _CCUnitLine
 Read line. More...


Functions

void destroyTestDef (_CCUnitTestDef *test)
 destroy test def.

_CCUnitTestDefinitTestDef (_CCUnitTestDef *test, CCUnitTestType_t type, const char *name)
 init test def.

void deleteTestDef (_CCUnitTestDef *test)
 delete test def.

void destroyTestSuiteDef (_CCUnitTestSuiteDef *suite)
 destroy test suite def.

_CCUnitTestSuiteDefccunit_newTestSuiteDef (const char *name)
 create new test suite def.

void ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef *suite)
 delete test suite def.

_CCUnitTestDefaddTestDef (_CCUnitTestSuiteDef *suite, _CCUnitTestDef *test)
 add test to test suite.

_CCUnitTestDefaddTestSuiteDef (_CCUnitTestSuiteDef *suite, _CCUnitTestSuiteDef *test)
 add test suite to test suite.

_CCUnitTestDefaddTestFixtureDef (_CCUnitTestSuiteDef *suite, _CCUnitTestFixtureDef *test)
 add test fixture to test suite.

_CCUnitFuncDefnewFuncDef (const char *scope, const char *type, const char *name, const char *desc)
 create new test case.

void deleteFuncDef (_CCUnitFuncDef *func)
 delete test func def.

void destroyTestFixtureDef (_CCUnitTestFixtureDef *fixture)
 destroy test fixture def.

_CCUnitTestFixtureDefnewTestFixtureDef (const char *name)
 create new test fixture def.

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.

void ccunit_readSuite (const char *fname, _CCUnitTestSuiteDef *suite)
 read test unit suite from specified stream.


Variables

_CCUnitLine line
 Current processing line.

const char * testTypeStr []

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