ifw-fcf  3.0.0
Classes | Functions | Variables
testPiezo Namespace Reference

Classes

class  MyDeviceConfig
 Dummy Test PiezoConfig class used for testing purposes. More...
 
class  MyPiezo
 Dummy Test piezo class used for testing purposes. More...
 
class  TestPiezo
 

Functions

void ExpectHelperNo (MockDbAdapter &mock)
 ExpectHelperNo. More...
 
void ExpectRead (std::shared_ptr< MockIComm > comm_if, std::shared_ptr< testPiezo::MyDeviceConfig > &dev_cfg, fcf::devmgr::piezo::PiezoControllerData &data, int repetitions)
 
 TEST_F (TestPiezo, Ctor)
 Test the Piezo device class constructor. More...
 
 TEST_F (TestPiezo, Connect)
 Test the connection to the LCS. More...
 
 TEST_F (TestPiezo, Init)
 Test the Initialisation of the device. More...
 
 TEST_F (TestPiezo, Ignore)
 Test the device ignore functionality. More...
 
 TEST_F (TestPiezo, Simulate)
 Test the device simulation functionality. More...
 
 TEST_F (TestPiezo, Setup)
 Test Piezo Setup method. More...
 
 TEST_F (TestPiezo, Status)
 Test the device Status method. More...
 
 TEST_F (TestPiezo, EndAcq)
 Test the end of an acquisition. More...
 
 TEST_F (TestPiezo, 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 PIEZO_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testPiezo.yml"
 
std::string const PIEZO_MAP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMapPiezo.yml"
 

Function Documentation

◆ ExpectHelperNo()

void testPiezo::ExpectHelperNo ( MockDbAdapter mock)

ExpectHelperNo.

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

◆ ExpectRead()

void testPiezo::ExpectRead ( std::shared_ptr< MockIComm comm_if,
std::shared_ptr< testPiezo::MyDeviceConfig > &  dev_cfg,
fcf::devmgr::piezo::PiezoControllerData data,
int  repetitions 
)

◆ TEST_F() [1/9]

testPiezo::TEST_F ( TestPiezo  ,
Connect   
)

Test the connection to the LCS.

◆ TEST_F() [2/9]

testPiezo::TEST_F ( TestPiezo  ,
Ctor   
)

Test the Piezo device class constructor.

◆ TEST_F() [3/9]

testPiezo::TEST_F ( TestPiezo  ,
EndAcq   
)

Test the end of an acquisition.

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

◆ TEST_F() [4/9]

testPiezo::TEST_F ( TestPiezo  ,
Ignore   
)

Test the device ignore functionality.

◆ TEST_F() [5/9]

testPiezo::TEST_F ( TestPiezo  ,
Init   
)

Test the Initialisation of the device.

◆ TEST_F() [6/9]

testPiezo::TEST_F ( TestPiezo  ,
Local   
)

Test the device local signal.

◆ TEST_F() [7/9]

testPiezo::TEST_F ( TestPiezo  ,
Setup   
)

Test Piezo Setup method.

◆ TEST_F() [8/9]

testPiezo::TEST_F ( TestPiezo  ,
Simulate   
)

Test the device simulation functionality.

◆ TEST_F() [9/9]

testPiezo::TEST_F ( TestPiezo  ,
Status   
)

Test the device Status method.

Variable Documentation

◆ CONFIG_CFG

std::string const testPiezo::CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml"

◆ PIEZO_CFG

std::string const testPiezo::PIEZO_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testPiezo.yml"

◆ PIEZO_MAP_CFG

std::string const testPiezo::PIEZO_MAP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMapPiezo.yml"