ZeroErr
|
TestContext is a class that holds the test results and reporter context. There are 8 different matrices that are used to store the test results. 更多...
#include <unittest.h>
Public 成员函数 | |
int | add (TestContext &local) |
Add the subtest results to the matrices. | |
void | reset () |
Reset the matrices to 0. | |
void | save_output () |
Save the output of the test to the correct_output_path as a golden file. | |
TestContext (IReporter &reporter) | |
Construct a new Test Context object | |
~TestContext ()=default | |
Public 属性 | |
unsigned | passed = 0 |
unsigned | warning = 0 |
unsigned | failed = 0 |
unsigned | skipped = 0 |
unsigned | passed_as = 0 |
unsigned | warning_as = 0 |
unsigned | failed_as = 0 |
unsigned | skipped_as = 0 |
std::chrono::duration< double > | duration = std::chrono::duration<double>::zero() |
IReporter & | reporter |
TestContext is a class that holds the test results and reporter context. There are 8 different matrices that are used to store the test results.
|
inline |
Construct a new Test Context object
reporter | The reporter object that will be used to report the test results. |
|
default |
int zeroerr::TestContext::add | ( | TestContext & | local | ) |
Add the subtest results to the matrices.
local | The local test context that will be added to the global context. |
void zeroerr::TestContext::reset | ( | ) |
Reset the matrices to 0.
void zeroerr::TestContext::save_output | ( | ) |
Save the output of the test to the correct_output_path as a golden file.
std::chrono::duration<double> zeroerr::TestContext::duration = std::chrono::duration<double>::zero() |
unsigned zeroerr::TestContext::failed = 0 |
unsigned zeroerr::TestContext::failed_as = 0 |
unsigned zeroerr::TestContext::passed = 0 |
unsigned zeroerr::TestContext::passed_as = 0 |
IReporter& zeroerr::TestContext::reporter |
unsigned zeroerr::TestContext::skipped = 0 |
unsigned zeroerr::TestContext::skipped_as = 0 |
unsigned zeroerr::TestContext::warning = 0 |
unsigned zeroerr::TestContext::warning_as = 0 |