OSDN Git Service

A position of a declaration of @ingroup is changed.
authortsutsumi <>
Wed, 24 Sep 2003 11:14:43 +0000 (11:14 +0000)
committertsutsumi <>
Wed, 24 Sep 2003 11:14:43 +0000 (11:14 +0000)
When it is the head, because JAVADOC_AUTOBRIEF doesn't work.
A ccunit_runBare function was hidden.
Because it is the function used only with a thing in the package.

src/ccunit/CCUnitTestFixture.h
src/ccunit/CCUnitTestResult.c

index cf00680..d184291 100644 (file)
@@ -46,8 +46,6 @@
 /**
  * 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
 {
@@ -135,12 +135,12 @@ 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)(),
@@ -151,19 +151,20 @@ extern CCUnitTestFixture* ccunit_newTestFixture (const char* name,
  *
  * @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,
@@ -174,17 +175,9 @@ extern CCUnitTestCase* ccunit_addNewTestCase (CCUnitTestFixture* fixture,
  * 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
index 9129c1f..06acf5e 100644 (file)
@@ -33,6 +33,7 @@
  */
 
 extern jmp_buf _ccunit_run_env;
+extern void _ccunit_runBare (CCUnitTestFixture* testFixture, void (*runTest)());
 
 /**
  * Informs the result that a test will be started.
@@ -79,7 +80,7 @@ void _ccunit_runTestCase (CCUnitTestResult* result, CCUnitTestFixture* fixture)
     {
       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;