#include <GenericUnitTester.h>
|
std::mutex | m_testMutex |
|
std::condition_variable | m_testCv |
|
HRESULT | m_lastTestResult = S_OK |
|
Contains generic tests for any module.
◆ descriptorsMethodParamsTest()
HRESULT tester::ModuleUnitTester::descriptorsMethodParamsTest |
( |
| ) |
|
This test checks whether the do_get_*_descriptors methods validate their input parameters properly.
- Returns
- S_OK if all input parameters were correctly validated, otherwise E_FAIL
◆ descriptorsMethodsTest()
HRESULT tester::ModuleUnitTester::descriptorsMethodsTest |
( |
| ) |
|
Every module has to implement at least one do_get_*_descriptors method. This test checks if tested module implements one.
- Returns
- S_OK if at least one descriptors method is found, otherwise E_FAIL
◆ entityCreationTest()
HRESULT tester::ModuleUnitTester::entityCreationTest |
( |
| ) |
|
When module implements do_create_* factory method, a valid object should be constructed when this method is called. This test checks if every factory method is able to create a valid object.
- Returns
- S_OK if valid objects were successfully created, otherwise false
◆ factoryMethodsTest()
HRESULT tester::ModuleUnitTester::factoryMethodsTest |
( |
| ) |
|
When module implements a do_get_*_descriptors method, it also has to implement corresponding do_create_* factory method. This test checks if tested module implements one.
- Returns
- S_OK if all factory methods are found, otherwise false
◆ isModuleTested()
bool tester::ModuleUnitTester::isModuleTested |
( |
const std::string & |
module | ) |
|
|
static |
Checks if module on given path has already been tested.
- Parameters
-
- Returns
- true if the module was already tested, otherwise false
◆ loadModule()
bool tester::ModuleUnitTester::loadModule |
( |
const std::string & |
modulePath | ) |
|
Loads given module for future test execution.
- Parameters
-
modulePath | path to the module |
- Returns
- true, if successfully loaded, otherwise false
The documentation for this class was generated from the following files: