ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
testSensor Namespace Reference

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 expect_helper (MockDbAdapter &mock, MockIConfig &config)
 expect_helper More...
 
void expect_helper_no (MockDbAdapter &mock)
 
 TEST_F (TestSensor, Ctor)
 Test Sensor constructor. More...
 
 TEST_F (TestSensor, Ignore)
 
 TEST_F (TestSensor, Simulate)
 
 TEST_F (TestSensor, Status)
 
 TEST_F (TestSensor, EndAcq)
 

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"
 

Function Documentation

void testSensor::expect_helper ( MockDbAdapter mock,
MockIConfig config 
)

expect_helper

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 testSensor::expect_helper_no ( MockDbAdapter mock)
testSensor::TEST_F ( TestSensor  ,
Ctor   
)

Test Sensor constructor.

testSensor::TEST_F ( TestSensor  ,
Ignore   
)
testSensor::TEST_F ( TestSensor  ,
Simulate   
)
testSensor::TEST_F ( TestSensor  ,
Status   
)
testSensor::TEST_F ( TestSensor  ,
EndAcq   
)

Variable Documentation

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"