/**
* Wraps a test case with setUp and tearDown methods.
*
- * @ingroup WritingTestFixture
- *
* A TestCase is used to provide a common environment for a set
* of test cases.
*
* in src/tools/ccunit_makeSuite.c.
*
* @see CCUnitTestResult, CCUnitTestCase, CCUnitTestSuite, CCUnitMakeSuite,
+ *
+ * @ingroup WritingTestFixture
*/
typedef struct CCUnitTestFixture
{
/**
* create new test fixture.
- * @ingroup WritingTestFixture
*
* @param name test fixture name.
* @param setUp test fixture setUp function.
* @param tearDown test fixture tearDown function.
* @return new test fixture.
+ * @ingroup WritingTestFixture
*/
extern CCUnitTestFixture* ccunit_newTestFixture (const char* name,
void (*setUp)(),
*
* @param fixture test fixture.
* @param testCase test case
+ * @ingroup WritingTestFixture
*/
extern inline void ccunit_addTestCase (CCUnitTestFixture* fixture,
CCUnitTestCase* testCase);
/**
* add new test case to test fixture.
- * @ingroup WritingTestFixture
*
* @param fixture test fixture.
* @param name test case name.
* @param desc test case description.
* @param runTest run test function.
* @return new test case
+ * @ingroup WritingTestFixture
*/
extern CCUnitTestCase* ccunit_addNewTestCase (CCUnitTestFixture* fixture,
const char* name,
* run test cases and collect its results.
* @param f test fixture.
* @return test result.
+ * @ingroup ExecutingTest
*/
extern inline struct CCUnitTestResult* ccunit_runTestFixture (CCUnitTestFixture* f);
-/**
- * Runs the bare test sequence.
- *
- * @param testFixture test fixture to run.
- * @param runTest test run function.
- * @throws _ccunit_runResult_env by longjmp.
- */
-extern void ccunit_runBare (CCUnitTestFixture* testFixture, void (*runTest)());
-
/** @} */
#endif
*/
extern jmp_buf _ccunit_run_env;
+extern void _ccunit_runBare (CCUnitTestFixture* testFixture, void (*runTest)());
/**
* Informs the result that a test will be started.
{
startTest (result, testCase);
if ((failure = setjmp (_ccunit_run_env)) == 0)
- ccunit_runBare (fixture, testCase->runTest);
+ _ccunit_runBare (fixture, testCase->runTest);
else
{
CCUnitTestFailure* f = (CCUnitTestFailure*)failure;