|
| vmcs_ut () |
|
| ~vmcs_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) |
|
|
bool | init () override |
|
bool | fini () override |
|
bool | list () override |
|
template<class L , class C , class = typename std::enable_if<std::is_integral<L>::value>::type> |
void | test_vmcs_check_with_args (gsl::cstring_span<> fut, L line, const std::vector< struct control_flow_path > &cfg, C chk) |
|
template<typename T > |
void | run_unittest_with_mocks (MockRepository &mocks, T lamda, const char *func, int line) |
|
void | compare_exceptions (const struct exception_state &state, gsl::cstring_span<> func, int line, int path_id=-1) |
|
void | inc_pass () |
|
void | inc_fail () |
|
Definition at line 96 of file test.h.
◆ vmcs_ut()
◆ ~vmcs_ut()
◆ init()
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 199 of file test.cpp.
◆ fini()
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 205 of file test.cpp.
◆ list()
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 1381 of file test.cpp.
◆ test_vmcs_check_with_args()
template<class L , class C , class = typename std::enable_if<std::is_integral<L>::value>::type>
void vmcs_ut::test_vmcs_check_with_args |
( |
gsl::cstring_span<> |
fut, |
|
|
L |
line, |
|
|
const std::vector< struct control_flow_path > & |
cfg, |
|
|
C |
chk |
|
) |
| |
|
inlineprotected |
The documentation for this class was generated from the following files: