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

Data Structures | Functions

# TestResult
[Module Hierarchy]

Collects the results of a test case module. More...

Collaboration diagram for TestResult:

## Data Structures
struct | CCUnitTestResult
| Collects the results of a test case. More...
## Functions
void | _ccunit_runBare (CCUnitTestCase *testCase, void(*runTest)(), CCUnitTestResult *result)
void | _ccunit_startTest (CCUnitTestResult *result, struct CCUnitTestFunc *test)
| Informs the result that a test will be started.
void | _ccunit_endTest (CCUnitTestResult *result, struct CCUnitTestFunc *test)
| Informs the result that a test was completed.

## Detailed Description

Collects the results of a test case module.

This module use a CCUnitTestListener to be informed of the ongoing tests.

See also:
  CCUnitTest, CCUnitTestListener.

## Function Documentation

void _ccunit_endTest | ( | CCUnitTestResult * | result,
|  | struct CCUnitTestFunc * | test |
| ) |  |  |

Informs the result that a test was completed.

References ccunit_initListIterator(), ccunit_nextListIterator(), CCUnitTestListener::endTest, and listeners.

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:

void _ccunit_runBare | ( | CCUnitTestCase * | testCase,
|  | void(*)() | runTest,
|  | CCUnitTestResult * | result |
| ) |  |  |

void _ccunit_startTest | ( | CCUnitTestResult * | result,
|  | struct CCUnitTestFunc * | test |
| ) |  |  |

Informs the result that a test will be started.

References ccunit_initListIterator(), ccunit_nextListIterator(), listeners, and CCUnitTestListener::startTest.

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:

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