ZeroErr
|
TestCase is a class that holds the test case information. There are several fields that are used to store the test case information. 更多...
#include <unittest.h>
Public 成员函数 | |
bool | operator< (const TestCase &rhs) const |
Compare the test cases. | |
TestCase (std::string name, std::string file, unsigned line, std::vector< Decorator * > decorators) | |
Construct a new Test Case object | |
TestCase (std::string name, std::string file, unsigned line, std::function< void(TestContext *)> func, std::vector< Decorator * > decorators) | |
Construct a new Test Case object | |
Public 属性 | |
std::string | name |
std::string | file |
unsigned | line |
std::function< void(TestContext *)> | func |
std::vector< TestCase * > | subcases |
std::vector< Decorator * > | decorators |
TestCase is a class that holds the test case information. There are several fields that are used to store the test case information.
|
inline |
Construct a new Test Case object
name | The name of the test case. |
file | The file that the test case is defined. |
line | The line that the test case is defined. |
|
inline |
Construct a new Test Case object
name | The name of the test case. |
file | The file that the test case is defined. |
line | The line that the test case is defined. |
func | The function that will be run to test the test case. |
decorators | The decorators that will be used to decorate the test case. |
bool zeroerr::TestCase::operator< | ( | const TestCase & | rhs | ) | const |
Compare the test cases.
rhs | The test case that will be compared. |
std::vector<Decorator*> zeroerr::TestCase::decorators |
std::string zeroerr::TestCase::file |
std::function<void(TestContext*)> zeroerr::TestCase::func |
unsigned zeroerr::TestCase::line |
std::string zeroerr::TestCase::name |
std::vector<TestCase*> zeroerr::TestCase::subcases |