CCUnit project page CCUnit home page

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

TestResult
[Module hierarchy]


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.


Data Structures

struct  CCUnitTestResult
 Collects the results of a test case. More...


Functions

void _ccunit_runBare (CCUnitTestFixture *testFixture, void(*runTest)(), CCUnitTestResult *result)
void _ccunit_startTest (CCUnitTestResult *result, struct CCUnitTestCase *test)
 Informs the result that a test will be started.

void _ccunit_endTest (CCUnitTestResult *result, struct CCUnitTestCase *test)
 Informs the result that a test was completed.

CCUnitTestResultccunit_newTestResult ()
 Construct TestResult.

void ccunit_deleteTestResult (CCUnitTestResult *result)
 Destruct TestResult.

void ccunit_addResultListener (CCUnitTestResult *result, CCUnitTestListener *listener)
 Registers a TestRunner as TestListener.

void ccunit_addFailure (CCUnitTestResult *result, struct CCUnitTestFailure *failure)
 Adds a failure to the list of failures.

size_t ccunit_failureCount (CCUnitTestResult *result)
 Gets the number of detected failures.

bool ccunit_wasSuccessful (CCUnitTestResult *result)
 Returns whether the entire test was successful or not.

void ccunit_stopTest (CCUnitTestResult *result)
 Marks that the test run should stop.

size_t ccunit_runCount (CCUnitTestResult *result)
 Gets the number of run tests.

CCUnitListIteratorccunit_failures (CCUnitTestResult *result)
 Returns an Iterator for the failures.


Variables

jmp_buf _ccunit_run_env
 run test fixtures exception.

jmp_buf _ccunit_runTest_env
 run tests exception.


Function Documentation

void _ccunit_endTest CCUnitTestResult result,
struct CCUnitTestCase test
 

Informs the result that a test was completed.

void _ccunit_runBare CCUnitTestFixture testFixture,
void(*  runTest)(),
CCUnitTestResult result
 

void _ccunit_startTest CCUnitTestResult result,
struct CCUnitTestCase test
 

Informs the result that a test will be started.

void ccunit_addFailure CCUnitTestResult result,
struct CCUnitTestFailure failure
 

Adds a failure to the list of failures.

The passed in failed assertion caused the failure.

Parameters:
result result object.
failure failure.

void ccunit_addResultListener CCUnitTestResult result,
CCUnitTestListener listener
[inline]
 

Registers a TestRunner as TestListener.

Parameters:
result result object.
listener adding listener.

void ccunit_deleteTestResult CCUnitTestResult result  ) 
 

Destruct TestResult.

Parameters:
result result object.

size_t ccunit_failureCount CCUnitTestResult result  )  [inline]
 

Gets the number of detected failures.

Parameters:
result result object.

CCUnitListIterator* ccunit_failures CCUnitTestResult result  )  [inline]
 

Returns an Iterator for the failures.

Parameters:
result result object.

CCUnitTestResult* ccunit_newTestResult  ) 
 

Construct TestResult.

size_t ccunit_runCount CCUnitTestResult result  )  [inline]
 

Gets the number of run tests.

Parameters:
result result object.

void ccunit_stopTest CCUnitTestResult result  )  [inline]
 

Marks that the test run should stop.

Parameters:
result result object.

bool ccunit_wasSuccessful CCUnitTestResult result  )  [inline]
 

Returns whether the entire test was successful or not.

Parameters:
result result object.

Variable Documentation

jmp_buf _ccunit_run_env
 

run test fixtures exception.

jmp_buf _ccunit_runTest_env
 

run tests exception.


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