[ CCUnit project page ] [ CCUnit home page ]
Data Structures | Typedefs | Functions

TestSuite
[Test]

A Composite class of Tests. More...

Collaboration diagram for TestSuite:

Data Structures

struct  CCUnitTestSuite
 A Composite class of Tests. More...
struct  CCUnitTestSuiteDfn

Typedefs

typedef struct CCUnitTestSuiteDfn CCUnitTestSuiteDfn

Functions

static void run (CCUnitTest *testSuite, CCUnitTestResult *result)
 Runs the test cases and collects their result in a TestResult.
static void destroy (CCUnitTest *test)
 destruct test suite.
CCUnitTestSuiteccunit_newTestSuiteFromDfn (const CCUnitTestSuiteDfn *sdp)
 Constructs a TestSuite from definition struct.

Detailed Description

A Composite class of Tests.

It runs a collection of test cases.


Typedef Documentation


Function Documentation

CCUnitTestSuite * ccunit_newTestSuiteFromDfn ( const CCUnitTestSuiteDfn sdp  ) 

Constructs a TestSuite from definition struct.

Parameters:
sdp test suite definition.
Returns:
new test suite.
static void destroy ( CCUnitTest test  )  [static]

destruct test suite.

Parameters:
test destruct object.

References ccunit_deleteList(), ccunit_deleteTest(), ccunitTypeSuite, name, safe_free, tests, and CCUnitTest::type.

Here is the call graph for this function:

static void run ( CCUnitTest testSuite,
CCUnitTestResult result 
) [static]

Runs the test cases and collects their result in a TestResult.

Parameters:
testSuite test suite.
result result container.

References ccunit_initListIterator(), ccunit_nextListIterator(), ccunitTypeSuite, CCUnitTest::run, CCUnitTestResult::shouldStop, tests, and CCUnitTest::type.

Here is the call graph for this function:

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