CCUnit
2.1
A C Unit Testing Library
|
いくつかのテストケースやテストスーツをまとめて、 ひとつのテストスーツにします。 [詳細]
![]() |
データ構造 | |
struct | CCUnitTestSuite |
A Composite class of Tests. [詳細] |
型定義 | |
typedef struct CCUnitTestSuite | CCUnitTestSuite |
A Composite class of Tests. |
関数 | |
CCUnitTestSuite * | ccunit_suite (const char *name) |
Create a test suite from test source file. | |
int | main (int ac, char **av) |
To generate a test suite making source code. | |
int | ccunit_makeSuite (int ac, char **av) |
テストケースのソースコードから、テストスーツを作成するコードを生成する。 | |
int | ccunit_va_makeSuite (const char *prg,...) |
Generate a code to creating test suite code from the test func source codes. | |
CCUnitTestSuite * | ccunit_newTestSuite (const char *name) |
Constructs an empty TestSuite. | |
void | ccunit_deleteTestSuite (CCUnitTestSuite *suite) |
Destructs test suite. | |
void | ccunit_addTest (CCUnitTestSuite *suite, CCUnitTest *test) |
Adds a test to the suite. | |
void | ccunit_addTestSuite (CCUnitTestSuite *suite, CCUnitTestSuite *testSuite) |
Adds a test suite to the suite. | |
void | ccunit_addTestCase (CCUnitTestSuite *suite, CCUnitTestCase *testCase) |
Adds a test case to the suite. |
いくつかのテストケースやテストスーツをまとめて、 ひとつのテストスーツにします。
typedef struct CCUnitTestSuite CCUnitTestSuite |
A Composite
class of Tests.
It runs a collection of test case or suite. Here is an example.
|
inline |
Adds a test to the suite.
suite | test suite. |
test | test to add. |
参照先 ccunit_addList(), と CCUnitTestSuite::tests.
参照元 ccunit_addTestCase(), と ccunit_addTestSuite().
|
inline |
Adds a test case to the suite.
suite | test suite. |
testCase | test case to add. |
参照先 ccunit_addTest(), と CCUnitTestCase::test.
参照元 ccunit_newTestSuiteFromDfn().
|
inline |
Adds a test suite to the suite.
suite | test suite. |
testSuite | test to add. |
参照先 ccunit_addTest(), と CCUnitTestSuite::test.
参照元 ccunit_newTestSuiteFromDfn().
|
inline |
Destructs test suite.
suite | deleting suite. |
参照先 ccunit_deleteTest(), と CCUnitTestSuite::test.
int ccunit_makeSuite | ( | int | ac, |
char ** | av | ||
) |
テストケースのソースコードから、テストスーツを作成するコードを生成する。
ac | arg count. |
av | array of arg string. |
テストケースソースコードは次の疑似 BNF によってフォーマットされなくてはなりません。
参照先 _ccunit_debug_message, _ccunit_verbose_message, ccunit_deleteTestSuiteDef(), ccunit_err(), ccunit_newTestSuiteDef(), ccunit_printSuite(), ccunit_readSuite(), DIRSEP, SETVBUF, と usage().
参照元 ccunit_va_makeSuite(), と main().
|
inline |
Constructs an empty TestSuite.
name | test suite name. |
参照先 ccunit_initList(), ccunit_initTest(), ccunitTypeSuite, destroy(), CCUnitTestSuite::name, run(), safe_strdup, CCUnitTestSuite::test, と CCUnitTestSuite::tests.
参照元 ccunit_newTestSuiteFromDfn().
CCUnitTestSuite* ccunit_suite | ( | const char * | name | ) |
Create a test suite from test source file.
name | test suite name. |
int ccunit_va_makeSuite | ( | const char * | prg, |
... | |||
) |
Generate a code to creating test suite code from the test func source codes.
prg | program name |
... | arguments. The last arg must be NULL. |
参照先 ccunit_makeSuite().
int main | ( | int | ac, |
char ** | av | ||
) |
|
hosts this site. | Send comments to: CCUnit Developer |
CCUnitに対してSat Jul 13 2013 15:09:25に生成されました。
![]() |