ifw-fcf
2.0.0
|
Classes | |
class | MyDeviceConfig |
Test SensorConfig class used for testing purposes. More... | |
class | MySensor |
Test sensor class used for testing purposes. More... | |
class | TestSensor |
Functions | |
void | ExpectHelper (MockDbAdapter &mock, MockIConfig &config) |
ExpectHelper. More... | |
void | ExpectHelperNo (MockDbAdapter &mock) |
TEST_F (TestSensor, Ctor) | |
Test Sensor constructor. More... | |
TEST_F (TestSensor, Ignore) | |
Test the device ignore functionality. More... | |
TEST_F (TestSensor, Simulate) | |
Test the device simulation functionality. More... | |
TEST_F (TestSensor, Status) | |
Test the device Status method. More... | |
TEST_F (TestSensor, EndAcq) | |
Test the end of an acquisition. More... | |
Variables | |
std::string const | CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml" |
std::string const | SENSOR_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testSensor.yml" |
std::string const | SENSOR_MAP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMapSensor.yml" |
void testSensor::ExpectHelper | ( | MockDbAdapter & | mock, |
MockIConfig & | config | ||
) |
ExpectHelper.
mock | Mock for DbAdapter class |
config | Mock for Configuration class |
This functions encapsulate the all the calls expected for the mock classes used in the test functions in this file.
void testSensor::ExpectHelperNo | ( | MockDbAdapter & | mock | ) |
testSensor::TEST_F | ( | TestSensor | , |
Ctor | |||
) |
Test Sensor constructor.
testSensor::TEST_F | ( | TestSensor | , |
Ignore | |||
) |
Test the device ignore functionality.
testSensor::TEST_F | ( | TestSensor | , |
Simulate | |||
) |
Test the device simulation functionality.
testSensor::TEST_F | ( | TestSensor | , |
Status | |||
) |
Test the device Status method.
testSensor::TEST_F | ( | TestSensor | , |
EndAcq | |||
) |
Test the end of an acquisition.
This test will validate the creation of a FITS file containing the FCF metadata.
std::string const testSensor::CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml" |
std::string const testSensor::SENSOR_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testSensor.yml" |
std::string const testSensor::SENSOR_MAP_CFG = std::string(WAF_MODULE_PATH) + "/test/res/testMapSensor.yml" |