Public Member Functions | Protected Member Functions
vmxon_ut Class Reference
Inheritance diagram for vmxon_ut:
unittest

Public Member Functions

 vmxon_ut ()
 
 ~vmxon_ut () override=default
 
- Public Member Functions inherited from unittest
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)
 

Protected Member Functions

bool init () override
 
bool fini () override
 
bool list () override
 
- Protected Member Functions inherited from unittest
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 ()
 

Detailed Description

Definition at line 27 of file test.h.

Constructor & Destructor Documentation

◆ vmxon_ut()

vmxon_ut::vmxon_ut ( )

Definition at line 25 of file test.cpp.

◆ ~vmxon_ut()

vmxon_ut::~vmxon_ut ( )
overridedefault

Member Function Documentation

◆ init()

bool vmxon_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.

bool init() override
{
<init here>
return true;
}
Returns
true if the init passed, false otherwise

Reimplemented from unittest.

Definition at line 30 of file test.cpp.

◆ fini()

bool vmxon_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.

bool fini() override
{
<fini here>
return true;
}
Returns
true if the fini passed, false otherwise

Reimplemented from unittest.

Definition at line 36 of file test.cpp.

◆ list()

bool vmxon_ut::list ( )
overrideprotectedvirtual

List Tests

Override this function to call each of your tests.

bool list() override
{
this->test1()
this->test2()
return true;
}
Returns
true if the tests passed, false otherwise

Reimplemented from unittest.

Definition at line 42 of file test.cpp.


The documentation for this class was generated from the following files: