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

Functions | Variables

# _PrintSuite
[MakeSuite]

Collaboration diagram for _PrintSuite:

## Functions
static void | printPrototype (FILE *ofp, const char *type, _CCUnitFuncDef *fdef)
| print function prototype.
static void | printPrototypes (FILE *ofp, _CCUnitTestSuiteDef *suitedef)
| print test suite/test case prototypes.
static void | printTestFunc (FILE *ofp, _CCUnitFuncDef *fndef)
static void | printTestCase (FILE *ofp, _CCUnitTestCaseDef *tcdef)
| print test case adding function.
static void | printSuite (FILE *ofp, const char *name, _CCUnitTestSuiteDef *suite)
| print test suite adding function.
void | ccunit_printSuite (FILE *ofp, const char *name, _CCUnitTestSuiteDef *suite)
| output test suite making function code.
## Variables
static const char * | ccunitTypeNames []
| CCUnitTestType_t name string.

## Function Documentation

void ccunit_printSuite | ( | FILE * | ofp,
|  | const char * | name,
|  | _CCUnitTestSuiteDef * | suite |
| ) |  |  |

output test suite making function code.

Parameters:

  | ofp | output stream.
  | name | add function name.
  | suite | test suite to print.

References _CCUnitTestDef::idname, printPrototypes(), printSuite(), and _CCUnitTestSuiteDef::testdef.

Here is the call graph for this function:

static void printPrototype | ( | FILE * | ofp,
|  | const char * | type,
|  | _CCUnitFuncDef * | fdef |
| ) |  |  | `[static]`

print function prototype.

Parameters:

  | ofp | output stream.
  | type | function type; ctor, dtor, setUp, tearDown, testCase.
  | fdef | funcdef object to print.

References ccunit_log(), _CCUnitFuncDef::desc, _CCUnitFuncDef::name, _CCUnitFuncDef::scope, and _CCUnitFuncDef::type.

Referenced by printPrototypes().

Here is the call graph for this function:

Here is the caller graph for this function:

static void printPrototypes | ( | FILE * | ofp,
|  | _CCUnitTestSuiteDef * | suitedef |
| ) |  |  | `[static]`

print test suite/test case prototypes.

Parameters:

  | ofp | output stream.
  | suitedef | test suite object to print.

References ccunit_initListIterator(), ccunit_log(), ccunit_nextListIterator(), ccunitTypeSuite, ccunitTypeTestCase, _CCUnitTestDef::name, printPrototype(), _CCUnitTestCaseDef::testdef, _CCUnitTestSuiteDef::testdefs, _CCUnitTestCaseDef::testFuncs, and _CCUnitTestDef::type.

Referenced by ccunit_printSuite().

Here is the call graph for this function:

Here is the caller graph for this function:

static void printSuite | ( | FILE * | ofp,
|  | const char * | name,
|  | _CCUnitTestSuiteDef * | suite |
| ) |  |  | `[static]`

print test suite adding function.

Parameters:

  | ofp | output stream.
  | name | function name.
  | suite | test suite to print.

References ccunit_initListIterator(), ccunit_nextListIterator(), ccunitTypeNames, ccunitTypeSuite, ccunitTypeTestCase, _CCUnitTestDef::idname, _CCUnitTestDef::name, printTestCase(), _CCUnitTestSuiteDef::testdef, _CCUnitTestSuiteDef::testdefs, and _CCUnitTestDef::type.

Referenced by ccunit_printSuite().

Here is the call graph for this function:

Here is the caller graph for this function:

static void printTestCase | ( | FILE * | ofp,
|  | _CCUnitTestCaseDef * | tcdef |
| ) |  |  | `[static]`

print test case adding function.

Parameters:

  | ofp | output stream.
  | tcdef | test case to print.

References ccunit_initListIterator(), ccunit_nextListIterator(), ccunitTypeNames, _CCUnitTestDef::idname, _CCUnitTestDef::name, printTestFunc(), _CCUnitTestCaseDef::testdef, _CCUnitTestCaseDef::testFuncs, and _CCUnitTestDef::type.

Referenced by printSuite().

Here is the call graph for this function:

Here is the caller graph for this function:

static void printTestFunc | ( | FILE * | ofp,
|  | _CCUnitFuncDef * | fndef |
| ) |  |  | `[inline, static]`

References _CCUnitFuncDef::desc, and _CCUnitFuncDef::name.

Referenced by printTestCase().

Here is the caller graph for this function:

## Variable Documentation

const char* ccunitTypeNames[]`[static]`

Initial value:

     {
      "ccunitTypeTest",
      "ccunitTypeSuite",
      "ccunitTypeTestCase",
    }

CCUnitTestType_t name string.

Referenced by printSuite(), and printTestCase().

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