testresult.h
来自「计算机软件的测试驱动程序cppunit精简版。」· C头文件 代码 · 共 32 行
H
32 行
#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 + =
减小字号Ctrl + -
显示快捷键?