CCUnit: CCUnitMakeSuite.h ソースファイル

CCUnit 2.1 A C Unit Testing Library

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

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

全て データ構造 ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義 グループ ページ
CCUnitMakeSuite.h
説明を見る。
1 /* -*- C; coding:utf-8 -*- */
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 * $Id$
22 */
23
27 #ifndef CCUNITMAKESUITE_H
28 #define CCUNITMAKESUITE_H
29
30 #include <ccunit/CCUnitConfig.h>
31 #include <ccunit/CCUnitList.h>
32 #include <ccunit/CCUnitTest.h>
33
34 #include <stdio.h>
35
99 typedef struct _CCUnitTestDef
100 {
101 CCUnitTestType_t type;
102 char* name;
103 char* idname;
104 void (*dtor) (struct _CCUnitTestDef*);
105 } _CCUnitTestDef;
106
118 typedef struct _CCUnitTestSuiteDef
119 {
120 _CCUnitTestDef testdef;
121 CCUnitList testdefs;
122 } _CCUnitTestSuiteDef;
123
130 extern _CCUnitTestSuiteDef* ccunit_newTestSuiteDef (const char* name);
131
137 extern inline void ccunit_deleteTestSuiteDef (_CCUnitTestSuiteDef* suite);
138
150 typedef struct _CCUnitFuncDef
151 {
152 char* scope;
153 char* type;
154 char* name;
155 char* desc;
156 } _CCUnitFuncDef;
157
169 typedef struct _CCUnitTestCaseDef
170 {
171 _CCUnitTestDef testdef;
172 _CCUnitFuncDef* ctor;
173 _CCUnitFuncDef* dtor;
174 CCUnitList testFuncs;
175 } _CCUnitTestCaseDef;
176
192 extern void ccunit_readSuite (const char* fname, _CCUnitTestSuiteDef* parent);
193
209 extern void ccunit_writeSuite (FILE* ofp,
210 const char* name,
211 _CCUnitTestSuiteDef* suite);
212
220 extern void ccunit_printSuite (FILE* ofp,
221 const char* name,
222 _CCUnitTestSuiteDef* suite);
223
266 extern int ccunit_makeSuite (int ac, char** av);
267
277 extern int ccunit_va_makeSuite (const char* prg, ...);
278
281 #endif

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