ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
testMotor Namespace Reference

Classes

class  MyDeviceConfig
 Test MotorConfig class used for testing purposes. More...
 
class  MyMotor
 Test motor class used for testing purposes. More...
 
class  TestMotor
 

Functions

void ExpectHelper (MockDbAdapter &mock, MockIConfig &config)
 ExpectHelper. More...
 
void ExpectHelperNo (MockDbAdapter &mock)
 
void ExpectRead (std::shared_ptr< MockIComm > comm_if, std::shared_ptr< testMotor::MyDeviceConfig > &dev_cfg, fcf::devmgr::motor::MotorControllerData &data, int repetitions)
 
 TEST_F (TestMotor, Ctor)
 Test Motor constructor. More...
 
 TEST_F (TestMotor, Connect)
 Test the connection to the LCS. More...
 
 TEST_F (TestMotor, Init)
 Test the Initialisation of the device. More...
 
 TEST_F (TestMotor, Ignore)
 Test the device ignore functionality. More...
 
 TEST_F (TestMotor, Simulate)
 Test the device simulation functionality. More...
 
 TEST_F (TestMotor, Setup)
 Test Motor Setup method. More...
 
 TEST_F (TestMotor, Status)
 Test the device Status method. More...
 
 TEST_F (TestMotor, EndAcq)
 Test the end of an acquisition. More...
 
 TEST_F (TestMotor, Local)
 Test the device local signal. More...
 

Variables

std::string const CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml"
 
std::string const MOTOR_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMotor.yml"
 
std::string const MOTOR_MAP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMapMotor.yml"
 

Function Documentation

void testMotor::ExpectHelper ( MockDbAdapter mock,
MockIConfig config 
)

ExpectHelper.

Parameters
mockMock for DbAdapter class
configMock for Configuration class

This functions encapsulate the all the calls expected for the mock classes used in the test functions in this file.

void testMotor::ExpectHelperNo ( MockDbAdapter mock)
void testMotor::ExpectRead ( std::shared_ptr< MockIComm comm_if,
std::shared_ptr< testMotor::MyDeviceConfig > &  dev_cfg,
fcf::devmgr::motor::MotorControllerData data,
int  repetitions 
)
testMotor::TEST_F ( TestMotor  ,
Ctor   
)

Test Motor constructor.

testMotor::TEST_F ( TestMotor  ,
Connect   
)

Test the connection to the LCS.

testMotor::TEST_F ( TestMotor  ,
Init   
)

Test the Initialisation of the device.

testMotor::TEST_F ( TestMotor  ,
Ignore   
)

Test the device ignore functionality.

testMotor::TEST_F ( TestMotor  ,
Simulate   
)

Test the device simulation functionality.

testMotor::TEST_F ( TestMotor  ,
Setup   
)

Test Motor Setup method.

testMotor::TEST_F ( TestMotor  ,
Status   
)

Test the device Status method.

testMotor::TEST_F ( TestMotor  ,
EndAcq   
)

Test the end of an acquisition.

This test will validate the creation of a FITS file containing the FCF metadata.

testMotor::TEST_F ( TestMotor  ,
Local   
)

Test the device local signal.

Variable Documentation

std::string const testMotor::CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml"
std::string const testMotor::MOTOR_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMotor.yml"
std::string const testMotor::MOTOR_MAP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMapMotor.yml"