|
| bfunwind_ut () |
|
| ~bfunwind_ut () override=default |
|
template<typename F > |
void | expect_exception_with_args (F &&f, std::shared_ptr< const std::exception > expected, gsl::cstring_span<> func, int line, int path_id=-1) |
|
template<typename F > |
void | expect_no_exception_with_args (F &&f, gsl::cstring_span<> func, int line, int path_id=-1) |
|
void | expect_true_with_args (bool condition, gsl::cstring_span<> condition_text, gsl::cstring_span<> func, int line) |
|
void | expect_false_with_args (bool condition, gsl::cstring_span<> condition_text, gsl::cstring_span<> func, int line) |
|
| unittest () |
|
virtual | ~unittest () |
|
decltype(auto) | run () |
|
void | expect_failed (const char *condition, const char *func, int line) |
|
void | assert_failed (const char *condition, const char *func, int line) |
|
Definition at line 28 of file test.h.
◆ bfunwind_ut()
bfunwind_ut::bfunwind_ut |
( |
| ) |
|
◆ ~bfunwind_ut()
bfunwind_ut::~bfunwind_ut |
( |
| ) |
|
|
overridedefault |
◆ init()
bool bfunwind_ut::init |
( |
| ) |
|
|
overrideprotectedvirtual |
Init Tests
Override this function to initalize your tests. It's better to use this fucntion than to use your constructor because if the init fails the unit test will stop, and report failure.
- Returns
- true if the init passed, false otherwise
Reimplemented from unittest.
Definition at line 119 of file test.cpp.
◆ fini()
bool bfunwind_ut::fini |
( |
| ) |
|
|
overrideprotectedvirtual |
Fini Tests
Override this function to finalize your tests. It's better to use this fucntion than to use your destructor because if the fini fails the unit test will stop, and report failure.
- Returns
- true if the fini passed, false otherwise
Reimplemented from unittest.
Definition at line 124 of file test.cpp.
◆ list()
bool bfunwind_ut::list |
( |
| ) |
|
|
overrideprotectedvirtual |
List Tests
Override this function to call each of your tests.
{
this->test1()
this->test2()
}
- Returns
- true if the tests passed, false otherwise
Reimplemented from unittest.
Definition at line 129 of file test.cpp.
The documentation for this class was generated from the following files: