testregistry.h
来自「计算机软件的测试驱动程序cppunit精简版。」· C头文件 代码 · 共 33 行
H
33 行
#ifndef TESTREGISTRY_H
#define TESTREGISTRY_H
// TestRegistry is a primitive singleton which collects all of the
// tests in a system and allows them to be executed. To see how
// tests are added to the TestRegistry look at the Test.h file
#include <vector>
class Test;
class TestResult;
class TestRegistry
{
public:
static void addTest (Test *test);
static void runAllTests (TestResult& result);
private:
static TestRegistry& instance ();
void add (Test *test);
void run (TestResult& result);
std::vector<Test *> tests;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?