CCUnit
2.1
A C Unit Testing Library
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
src
ccunit
CCUnitTestCase.h
Go to the documentation of this file.
1
/* -*- mode: C; -*- */
2
/* Copyright (C) 2003, 2010, 2013 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
29
#ifndef CCUNITTESTCASE_H
30
#define CCUNITTESTCASE_H
31
32
#include <
ccunit/CCUnitConfig.h
>
33
#include <
ccunit/CCUnitList.h
>
34
#include <
ccunit/CCUnitTest.h
>
35
#include <
ccunit/CCUnitTestFunc.h
>
36
#include <
ccunit/CCUnitTestResult.h
>
37
127
typedef
struct
CCUnitTestCase
128
{
129
CCUnitTest
test
;
130
const
char
*
name
;
131
CCUnitTestFunc
*
setUpBeforeClass
;
132
CCUnitTestFunc
*
tearDownAfterClass
;
133
CCUnitTestFunc
*
setUp
;
134
CCUnitTestFunc
*
tearDown
;
135
CCUnitList
testFuncs
;
136
}
CCUnitTestCase
;
137
141
typedef
struct
CCUnitTestCaseDfn
142
{
143
CCUnitTestDfn
test
;
144
const
char
*
name
;
145
CCUnitTestFunc
*
testFuncs
;
146
}
CCUnitTestCaseDfn
;
147
155
extern
CCUnitTestCase
*
ccunit_newTestCase
(
const
char
* name);
156
162
extern
inline
void
ccunit_deleteTestCase
(
CCUnitTestCase
* testCase);
163
171
extern
void
ccunit_addTestFunc
(
CCUnitTestCase
* testCase,
CCUnitTestFunc
* f);
172
183
extern
CCUnitTestFunc
*
ccunit_addNewTestFunc
(
CCUnitTestCase
* testCase,
184
const
char
* name,
185
const
char
* desc,
186
void
(*
runTest
)());
187
#define CCUNIT_ADDNEWTESTFUNC(TESTCASE, FN) ccunit_addNewTestFunc (TESTCASE, #FN, NULL, FN)
188
195
extern
inline
struct
CCUnitTestResult
*
ccunit_runTestCase
(
CCUnitTestCase
* testCase);
196
198
#endif
hosts this site.
Send comments to:
CCUnit Developer
Generated on Sat Jul 13 2013 15:09:10 for CCUnit by
1.8.1.1