⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testdef.h

📁 天之炼狱1服务器端源文件游戏服务端不完整
💻 H
字号:
#ifndef __TEST_DEF__#define __TEST_DEF__#include <cppunit/extensions/HelperMacros.h>#include <cppunit/TextTestRunner.h>#include "Types.h"#include "Exception.h"#define __BEGIN_TEST  		{ CppUnit::TextUi::TestRunner runner;#define ADD_TEST(test)    	  runner.addTest( test::suite() );#define	RUN_TEST(testName)    runner.run( testName, true );#define __END_TEST    }#define __BEGIN_TEST_CASE	try {#define __END_TEST_CASE 	} catch (Throwable& t) {										\								cout << "---------------------------- TestCase Exception Handled" << endl;	\								cout << "-" << endl;														\								cout << "-     " << t.toString().c_str() << endl;							\								cout << "-" << endl;														\								cout << "---------------------------- TestCase Exception Handled" << endl;	\								throw;														\							}//filelog("testException.log", "%s", t.toString().c_str());#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -