CCUnit
2.1
A C Unit Testing Library
|
Runs a single test and collects its results. More...
![]() |
Data Structures | |
struct | CCUnitTestRunner |
Runs a single test and collects its results. More... |
Functions | |
static void | startTest (CCUnitTestListener *listener, CCUnitTestFunc *test) |
receive startTest notification. | |
static void | endTest (CCUnitTestListener *listener, CCUnitTestFunc *test) |
receive endTest notification. | |
static void | addFailure (CCUnitTestListener *listener, CCUnitTestFailure *failure) |
receive addFailure notification. | |
static void | printHeader (CCUnitTestRunner *runner, CCUnitTestResult *result) |
Prints the header of the report. | |
static void | printFailures (CCUnitTestRunner *runner, CCUnitTestResult *result) |
Prints failures. | |
static void | print (CCUnitTestRunner *runner, CCUnitTestResult *result) |
Prints failures. | |
static int | doRun (CCUnitTestRunner *runner, CCUnitTestSuite *suite) |
Runs a single test and collects its results. | |
CCUnitTestResult * | ccunit_getResult (CCUnitTestRunner *runner) |
Get test result. |
Runs a single test and collects its results.
This method can be used to start a test run from your program.
|
static |
receive addFailure notification.
listener | notification listener. |
failure | failure information. |
References ofp.
Referenced by ccunit_newTestRunner().
|
inline |
|
static |
Runs a single test and collects its results.
runner | test runner |
suite | test suite |
References ccunit_addResultListener(), ccunit_newTestResult(), ccunit_runTestSuite(), ccunit_wasSuccessful(), listener, ofp, print(), and result.
Referenced by ccunit_newTestRunner().
|
static |
receive endTest notification.
listener | notification listener. |
test | ended test case |
Referenced by ccunit_newTestRunner().
|
inlinestatic |
Prints failures.
runner | test runner |
result | test result |
References printFailures(), and printHeader().
Referenced by doRun().
|
static |
Prints failures.
runner | test runner. |
result | test result. |
References CCUnitTestFailure::actual, ccunit_deleteListIterator(), ccunit_failureCount(), ccunit_failures(), ccunit_nextListIterator(), CCUnitTestFailure::condstr, CCUnitTestFunc::desc, CCUnitTestFailure::expect, CCUnitTestFailure::file, CCUnitTestFailure::line, ofp, and CCUnitTestFailure::testFunc.
Referenced by print().
|
static |
Prints the header of the report.
runner | test runner. |
result | test result. |
References ccunit_failureCount(), ccunit_runCount(), ccunit_wasSuccessful(), and ofp.
Referenced by print().
|
static |
receive startTest notification.
listener | notification listener. |
test | starting test case |
References ofp.
Referenced by ccunit_newTestRunner().
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sat Jul 13 2013 15:09:16 for CCUnit by
![]() |