CCUnit 2.1 A C Unit Testing Library

- メインページ
- 関連ページ
- モジュール
- データ構造
- ファイル

- ファイル一覧
- グローバル

全て データ構造 ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義 グループ ページ
CCUnitTestSuite.h
説明を見る。
1 /* -*- C -*- */
2 /* Copyright (C) 2003, 2010 TSUTSUMI Kikuo.
3 This file is part of the CCUnit Library.
4
5 The CCUnit Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public License
7 as published by the Free Software Foundation; either version 2.1 of
8 the License, or (at your option) any later version.
9
10 The CCUnit Library is distributed in the hope that it will be
11 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the CCUnit Library; see the file COPYING.LESSER.
17 If not, write to the Free Software Foundation, Inc., 59 Temple
18 Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
21 /*
22 * $Id$
23 */
27 #ifndef CCUNITTESTSUITE_H
28 #define CCUNITTESTSUITE_H
29
30 #include <ccunit/CCUnitConfig.h>
31 #include <ccunit/CCUnitList.h>
32 #include <ccunit/CCUnitTest.h>
33 #include <ccunit/CCUnitTestCase.h>
34 #include <ccunit/CCUnitTestResult.h>
35
58 typedef struct CCUnitTestSuite
59 {
60 CCUnitTest test;
61 const char* name;
62 CCUnitList tests;
63 } CCUnitTestSuite;
64
65 typedef struct CCUnitTestSuiteDfn
66 {
67 CCUnitTestDfn test;
68 const char* name;
69 CCUnitTestDfn** tests;
70 } CCUnitTestSuiteDfn;
71
78 extern inline CCUnitTestSuite* ccunit_newTestSuite(const char* name);
79
85 extern CCUnitTestSuite* ccunit_newTestSuiteFromDfn (const CCUnitTestSuiteDfn* sdp);
86
92 extern inline void ccunit_deleteTestSuite (CCUnitTestSuite* suite);
93
100 extern inline void ccunit_addTest (CCUnitTestSuite* suite, CCUnitTest* test);
101
108 extern inline void ccunit_addTestSuite (CCUnitTestSuite* suite,
109 CCUnitTestSuite* testSuite);
110
117 extern inline void ccunit_addTestCase (CCUnitTestSuite* suite,
118 CCUnitTestCase* testCase);
119
127 extern inline CCUnitTestResult* ccunit_runTestSuite (CCUnitTestSuite* suite,
128 CCUnitTestResult* result);
129
136 extern CCUnitTestSuite* ccunit_suite (const char* name);
137
139 #endif

| hosts this site. |  | Send comments to: CCUnit Developer |