SmartTester  2.0.0
Smart Tester is unit testing and regression testing framework used for testing SmartCGMS system.
Public Member Functions | List of all members
tester::ApproximatorUnitTester Class Reference

#include <SecondaryUnitTesters.h>

Inheritance diagram for tester::ApproximatorUnitTester:
Inheritance graph
[legend]
Collaboration diagram for tester::ApproximatorUnitTester:
Collaboration graph
[legend]

Public Member Functions

 ApproximatorUnitTester (const GUID &guid, const std::wstring &libraryPath)
 
void loadEntity () override
 Loads tested entity. Has to be implemented by derived classes.
 
void executeAllTests () override
 Every derived class has to override this method to execute all tests.
 
HRESULT shutDownTest () override
 Every derived class has to override the test shutdown mechanism.
 
HRESULT middleTimeApproximationTest ()
 
HRESULT middleTimeDerivativeApproximationTest ()
 
- Public Member Functions inherited from tester::EntityUnitTester< scgms::IApproximator >
 EntityUnitTester (const GUID &entityGuid)
 
bool isEntityLoaded () const noexcept
 
CDynamic_Library & getEntityLib () noexcept
 
const GUID & getEntityGuid () const noexcept
 
void loadEntityLibrary ()
 
const wchar_t * getEntityName (const std::string &symbolName)
 
- Public Member Functions inherited from tester::TestRunner
void executeTest (const std::wstring &testName, const std::function< HRESULT(void)> &test)
 

Additional Inherited Members

- Protected Member Functions inherited from tester::EntityUnitTester< scgms::IApproximator >
void setEntityLib (const std::wstring &libPath)
 
void setLibraryPath (const std::wstring &libraryPath) noexcept
 
const std::wstring & getLibraryPath () const
 
scgms::IApproximator * getTestedEntity () noexcept
 
void setTestedEntity (scgms::IApproximator *entity)
 
void runTest (const std::function< HRESULT()> &test) override
 We need special behavior of the test execution sequence, so we override this method. More...
 
- Protected Attributes inherited from tester::TestRunner
std::mutex m_testMutex
 
std::condition_variable m_testCv
 
HRESULT m_lastTestResult = S_OK
 

Detailed Description

Class for testing scgms::IApproximator interface.


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