libept
|
Result of running a test method. More...
#include <tests.h>
Public Member Functions | |
TestMethodResult (const std::string &test_case, const std::string &test_method) | |
void | set_failed (TestFailed &e) |
void | set_exception (std::exception &e) |
void | set_unknown_exception () |
void | set_setup_exception (std::exception &e) |
void | set_teardown_exception (std::exception &e) |
bool | is_success () const |
Public Attributes | |
std::string | test_case |
Name of the test case. | |
std::string | test_method |
Name of the test method. | |
std::string | error_message |
If non-empty, the test failed with this error. | |
TestStack | error_stack |
Stack frame of where the error happened. | |
std::string | exception_typeid |
If non-empty, the test raised an exception and this is its type ID. | |
bool | skipped = false |
True if the test has been skipped. | |
Result of running a test method.
|
inline |
|
inline |
References error_message.
Referenced by ept::tests::SimpleTestController::test_method_end().
|
inline |
References error_message, and exception_typeid.
|
inline |
References error_message, error_stack, ept::tests::TestFailed::stack, and ept::tests::TestFailed::what().
|
inline |
References error_message.
|
inline |
References error_message.
|
inline |
References error_message.
std::string ept::tests::TestMethodResult::error_message |
If non-empty, the test failed with this error.
Referenced by is_success(), set_exception(), set_failed(), set_setup_exception(), set_teardown_exception(), and set_unknown_exception().
TestStack ept::tests::TestMethodResult::error_stack |
Stack frame of where the error happened.
Referenced by set_failed().
std::string ept::tests::TestMethodResult::exception_typeid |
If non-empty, the test raised an exception and this is its type ID.
Referenced by set_exception().
bool ept::tests::TestMethodResult::skipped = false |
True if the test has been skipped.
Referenced by ept::tests::SimpleTestController::test_method_end().
std::string ept::tests::TestMethodResult::test_case |
Name of the test case.
Referenced by ept::tests::SimpleTestController::test_method_begin().
std::string ept::tests::TestMethodResult::test_method |
Name of the test method.