[ CCUnit project page ] |  | [ CCUnit home page ]

Data Structures | Functions | Variables

# CCUnitReadSuite.c File Reference

ReadSuite module implementation. More...

`#include <ccunit/CCUnitMakeSuite.h>`
`#include <ccunit/CCUnitLogMessage.h>`
`#include <ctype.h>`
`#include <errno.h>`
Include dependency graph for CCUnitReadSuite.c:

## Data Structures
struct | _CCUnitLine
| Read line. More...
## Functions
static void | destroyTestDef (_CCUnitTestDef *test)
| destroy test def.
static _CCUnitTestDef * | initTestDef (_CCUnitTestDef *test, CCUnitTestType_t type, const char *name)
| init test def.
static void | deleteTestDef (_CCUnitTestDef *test)
| delete test def.
static void | destroyTestSuiteDef (_CCUnitTestSuiteDef *suite)
| destroy test suite def.
_CCUnitTestSuiteDef * | ccunit_newTestSuiteDef (const char *name)
| create new test suite def.
void | ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef *suite)
| delete test suite def.
static _CCUnitTestDef * | addTestDef (_CCUnitTestSuiteDef *suite, _CCUnitTestDef *test)
| add test to test suite.
static _CCUnitTestDef * | addTestSuiteDef (_CCUnitTestSuiteDef *suite, _CCUnitTestSuiteDef *test)
| add test suite to test suite.
static _CCUnitTestDef * | addTestFixtureDef (_CCUnitTestSuiteDef *suite, _CCUnitTestFixtureDef *test)
| add test fixture to test suite.
static _CCUnitFuncDef * | newFuncDef (const char *scope, const char *type, const char *name, const char *desc)
| create new test case.
static void | deleteFuncDef (_CCUnitFuncDef *func)
| delete test func def.
static void | destroyTestFixtureDef (_CCUnitTestFixtureDef *fixture)
| destroy test fixture def.
static _CCUnitTestFixtureDef * | newTestFixtureDef (const char *name)
| create new test fixture def.
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 * | readTestCase (const char *type, const char *prefix, const char *desc)
| read test casedef.
static void | setFixtureFunc (_CCUnitFuncDef **fpp, _CCUnitFuncDef *fp)
| set fixture function.
static void | readTestFixture (_CCUnitTestSuiteDef *suite, const char *cname)
| read test fixture function.
static void | readSuite (_CCUnitTestSuiteDef *suite)
| read test suite def.
void | ccunit_readSuite (const char *fname, _CCUnitTestSuiteDef *parent)
| read test unit suite from specified stream.
## Variables
static struct _CCUnitLine | line
| Current processing line.
static const char * | testTypeStr []

## Detailed Description

ReadSuite module implementation.

| hosts this site. |  | Send comments to: CCUnit Developer |