CCUnit
2.1
A C Unit Testing Library
メインページ
関連ページ
モジュール
データ構造
ファイル
ファイル一覧
グローバル
全て
データ構造
ファイル
関数
変数
型定義
列挙型
列挙型の値
マクロ定義
グループ
ページ
src
ccunit
CCUnitTest.h
説明を見る。
1
/* -*- mode: 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
*/
24
30
#ifndef CCUNITTEST_H
31
#define CCUNITTEST_H
32
33
#include <
ccunit/CCUnitConfig.h
>
34
46
typedef
enum
CCUnitTestType_t
{
47
ccunitTypeTest
,
48
ccunitTypeSuite
,
49
ccunitTypeTestCase
,
50
ccunitTypeFunc
,
51
ccunitTypeLast_
52
}
CCUnitTestType_t
;
53
54
struct
CCUnitTestResult
;
55
62
typedef
struct
CCUnitTest
63
{
64
CCUnitTestType_t
type
;
65
void (*
run
)(
struct
CCUnitTest
*,
struct
CCUnitTestResult
*);
66
void (*
dtor
)(
struct
CCUnitTest
*);
67
}
CCUnitTest
;
68
69
typedef
struct
CCUnitTestDfn
70
{
71
CCUnitTestType_t
type
;
72
}
CCUnitTestDfn
;
73
83
extern
CCUnitTest
*
84
ccunit_initTest
(
CCUnitTest
* test,
85
CCUnitTestType_t
type,
86
void
(*
run
)(
CCUnitTest
*,
struct
CCUnitTestResult
*),
87
void
(*dtor)(
CCUnitTest
*));
88
94
extern
void
ccunit_deleteTest
(
CCUnitTest
* test);
95
98
#endif
hosts this site.
Send comments to:
CCUnit Developer
CCUnitに対してSat Jul 13 2013 15:09:23に生成されました。
1.8.1.1