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

📄 testresult.h

📁 计算机软件的测试驱动程序cppunit精简版。
💻 H
字号:


#ifndef TESTRESULT_H
#define TESTRESULT_H

// TestResult is a simple little class which accepts notifications from
// tests.  In its current form, it takes these notifications and prints
// them on the standard output.
//
// If you need different behavior, you can alter it in place or subclass 
// TestResult to provide it.  The TestResult hierarchy can be as simple
// or complex as you require to support your application.


class Failure;

class TestResult
{
public:
		 TestResult () : failureCount (0), testCount(0) {}
	void testWasRun ();
	void startTests ();
	void addFailure (Failure failure);
	void endTests ();

private:
	int failureCount;
	int testCount;
};

#endif

⌨️ 快捷键说明

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