[ CCUnit project page ] | [ CCUnit home page ] |
00001 /* -*- C -*- */ 00002 /* Copyright (C) 2003, 2010 TSUTSUMI Kikuo. 00003 This file is part of the CCUnit Library. 00004 00005 The CCUnit Library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public License 00007 as published by the Free Software Foundation; either version 2.1 of 00008 the License, or (at your option) any later version. 00009 00010 The CCUnit Library is distributed in the hope that it will be 00011 useful, but WITHOUT ANY WARRANTY; without even the implied warranty 00012 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with the CCUnit Library; see the file COPYING.LESSER. 00017 If not, write to the Free Software Foundation, Inc., 59 Temple 00018 Place - Suite 330, Boston, MA 02111-1307, USA. 00019 */ 00020 00021 /* 00022 * $Id: CCUnitTestSuite.h,v 1.12 2010/08/20 07:51:28 tsutsumi Exp $ 00023 */ 00027 #ifndef CCUNITTESTSUITE_H 00028 #define CCUNITTESTSUITE_H 00029 00030 #include <ccunit/CCUnitConfig.h> 00031 #include <ccunit/CCUnitList.h> 00032 #include <ccunit/CCUnitTest.h> 00033 #include <ccunit/CCUnitTestCase.h> 00034 #include <ccunit/CCUnitTestResult.h> 00035 00058 typedef struct CCUnitTestSuite 00059 { 00060 CCUnitTest test; 00061 const char* name; 00062 CCUnitList tests; 00063 } CCUnitTestSuite; 00064 00065 typedef struct CCUnitTestSuiteDfn 00066 { 00067 CCUnitTestDfn test; 00068 const char* name; 00069 CCUnitTestDfn** tests; 00070 } CCUnitTestSuiteDfn; 00071 00078 extern inline CCUnitTestSuite* ccunit_newTestSuite(const char* name); 00079 00085 extern CCUnitTestSuite* ccunit_newTestSuiteFromDfn (const CCUnitTestSuiteDfn* sdp); 00086 00092 extern inline void ccunit_deleteTestSuite (CCUnitTestSuite* suite); 00093 00100 extern inline void ccunit_addTest (CCUnitTestSuite* suite, CCUnitTest* test); 00101 00108 extern inline void ccunit_addTestSuite (CCUnitTestSuite* suite, 00109 CCUnitTestSuite* testSuite); 00110 00117 extern inline void ccunit_addTestCase (CCUnitTestSuite* suite, 00118 CCUnitTestCase* testCase); 00119 00127 extern inline CCUnitTestResult* ccunit_runTestSuite (CCUnitTestSuite* suite, 00128 CCUnitTestResult* result); 00129 00136 extern CCUnitTestSuite* ccunit_suite (const char* name); 00137 00139 #endif
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sun Aug 29 2010 10:59:33 for CCUnit by ![]() |