[ CCUnit project page ] | [ CCUnit home page ] |
00001 /* -*- mode: C; -*- */ 00002 /* Copyright (C) 2003 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: CCUnitTestResult.h,v 1.6 2003/09/28 13:47:30 tsutsumi Exp $ 00023 */ 00027 #ifndef CCUNITTESTRESULT_H 00028 #define CCUNITTESTRESULT_H 00029 00030 #include <ccunit/CCUnitConfig.h> 00031 #include <ccunit/CCUnitList.h> 00032 #include <ccunit/CCUnitTestFailure.h> 00033 #include <ccunit/CCUnitTestListener.h> 00034 00057 typedef struct CCUnitTestResult 00058 { 00059 CCUnitList failures; 00060 CCUnitList listeners; 00061 size_t runCount; 00062 bool shouldStop; 00063 } CCUnitTestResult; 00064 00069 extern CCUnitTestResult* ccunit_newTestResult (); 00070 00076 extern void ccunit_deleteTestResult (CCUnitTestResult* result); 00077 00085 extern void ccunit_addFailure (CCUnitTestResult* result, 00086 struct CCUnitTestFailure* failure); 00087 00094 extern inline void ccunit_addResultListener (CCUnitTestResult* result, 00095 CCUnitTestListener* listener); 00096 00102 extern inline CCUnitListIterator* ccunit_failures(CCUnitTestResult* result); 00103 00109 extern inline size_t ccunit_failureCount (CCUnitTestResult* result); 00110 00116 extern inline bool ccunit_wasSuccessful (CCUnitTestResult* result); 00117 00123 extern inline void ccunit_stopTest (CCUnitTestResult* result); 00124 00130 extern inline size_t ccunit_runCount (CCUnitTestResult* result); 00131 00134 #endif
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sun Aug 29 2010 10:59:33 for CCUnit by ![]() |