📄 testresult.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 + -