📄 descriptions.h
字号:
#ifndef __CXXTEST__DESCRIPTION_H
#define __CXXTEST__DESCRIPTION_H
//
// TestDescription, SuiteDescription and WorldDescription
// hold information about tests so they can be run and reported.
//
namespace CxxTest
{
class Runnable;
class TestListener;
class TestSuite;
class TestRunner;
struct TestDescription
{
const char *file;
unsigned line;
const char *suite;
const char *name;
Runnable *test;
int mode;
};
struct SuiteDescription
{
const char *name;
TestSuite *suite;
unsigned numTests;
const TestDescription *tests;
};
class WorldDescription
{
public:
virtual signed int numSuites( void ) const = 0;
virtual unsigned numTotalTests( void ) const = 0;
virtual const SuiteDescription &suiteDescription( unsigned i ) const = 0;
protected:
friend class TestRunner;
virtual void setUp( TestListener *l ) const = 0;
virtual void tearDown( TestListener *l ) const = 0;
};
}
#endif // __CXXTEST__DESCRIPTION_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -