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

CCUnit 2.1 A C Unit Testing Library

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

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

全て データ構造 ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義 グループ ページ
CCUnitTestResult.h
説明を見る。
1 /* -*- mode: C; -*- */
2 /* Copyright (C) 2003 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 CCUNITTESTRESULT_H
28 #define CCUNITTESTRESULT_H
29
30 #include <ccunit/CCUnitConfig.h>
31 #include <ccunit/CCUnitList.h>
32 #include <ccunit/CCUnitTestFailure.h>
33 #include <ccunit/CCUnitTestListener.h>
34
57 typedef struct CCUnitTestResult
58 {
59 CCUnitList failures;
60 CCUnitList listeners;
61 size_t runCount;
62 bool shouldStop;
63 } CCUnitTestResult;
64
69 extern CCUnitTestResult* ccunit_newTestResult ();
70
76 extern void ccunit_deleteTestResult (CCUnitTestResult* result);
77
85 extern void ccunit_addFailure (CCUnitTestResult* result,
86 struct CCUnitTestFailure* failure);
87
94 extern inline void ccunit_addResultListener (CCUnitTestResult* result,
95 CCUnitTestListener* listener);
96
102 extern inline CCUnitListIterator* ccunit_failures(CCUnitTestResult* result);
103
109 extern inline size_t ccunit_failureCount (CCUnitTestResult* result);
110
116 extern inline bool ccunit_wasSuccessful (CCUnitTestResult* result);
117
123 extern inline void ccunit_stopTest (CCUnitTestResult* result);
124
130 extern inline size_t ccunit_runCount (CCUnitTestResult* result);
131
134 #endif

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