?? 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 + -