test.h
来自「著名的uncle Bob的Agile software development的」· C头文件 代码 · 共 51 行
H
51 行
#ifndef CPPUNIT_TEST_H
#define CPPUNIT_TEST_H
#include <string>
class TestResult;
/*
* A Test can be run and collect its results.
* See TestResult.
*
*/
class Test
{
public:
virtual ~Test () = 0;
virtual void run (TestResult *result) = 0;
virtual int countTestCases () = 0;
virtual std::string toString () = 0;
};
inline Test::~Test ()
{}
// Runs a test and collects its result in a TestResult instance.
inline void Test::run (TestResult *result)
{}
// Counts the number of test cases that will be run by this test.
inline int Test::countTestCases ()
{ return 0; }
// Returns the name of the test instance.
inline std::string Test::toString ()
{ return ""; }
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?