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

Classes

class  MyDeviceConfig
 Test AdcConfig class used for testing purposes. More...
 
class  TestAdcConfig
 

Functions

void ExpectHelper (MockDbAdapter &mock)
 ExpectHelper. More...
 
 TEST_F (TestAdcConfig, Ctor)
 
 TEST_F (TestAdcConfig, ReadConfig)
 
 TEST_F (TestAdcConfig, GetIdentifier)
 
 TEST_F (TestAdcConfig, GetPrefix)
 
 TEST_F (TestAdcConfig, GetAddress)
 
 TEST_F (TestAdcConfig, GetType)
 
 TEST_F (TestAdcConfig, GetNamespace)
 
 TEST_F (TestAdcConfig, GetNodeId)
 
 TEST_F (TestAdcConfig, GetProcId)
 
 TEST_F (TestAdcConfig, GetObjId)
 

Variables

std::string const CONFIG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/config.yml"
 
std::string const ADC1_CFG = std::string(WAF_MODULE_PATH) + "/test/res/adc1.yml"
 
std::string const WRONG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/wrong.yml"
 

Function Documentation

◆ ExpectHelper()

void testAdcConfig::ExpectHelper ( MockDbAdapter mock)

ExpectHelper.

Parameters
mockMock for DbAdapter class

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

◆ TEST_F() [1/10]

testAdcConfig::TEST_F ( TestAdcConfig  ,
Ctor   
)

◆ TEST_F() [2/10]

testAdcConfig::TEST_F ( TestAdcConfig  ,
GetAddress   
)

◆ TEST_F() [3/10]

testAdcConfig::TEST_F ( TestAdcConfig  ,
GetIdentifier   
)

◆ TEST_F() [4/10]

testAdcConfig::TEST_F ( TestAdcConfig  ,
GetNamespace   
)

◆ TEST_F() [5/10]

testAdcConfig::TEST_F ( TestAdcConfig  ,
GetNodeId   
)

◆ TEST_F() [6/10]

testAdcConfig::TEST_F ( TestAdcConfig  ,
GetObjId   
)

◆ TEST_F() [7/10]

testAdcConfig::TEST_F ( TestAdcConfig  ,
GetPrefix   
)

◆ TEST_F() [8/10]

testAdcConfig::TEST_F ( TestAdcConfig  ,
GetProcId   
)

◆ TEST_F() [9/10]

testAdcConfig::TEST_F ( TestAdcConfig  ,
GetType   
)

◆ TEST_F() [10/10]

testAdcConfig::TEST_F ( TestAdcConfig  ,
ReadConfig   
)

Variable Documentation

◆ ADC1_CFG

std::string const testAdcConfig::ADC1_CFG = std::string(WAF_MODULE_PATH) + "/test/res/adc1.yml"

◆ CONFIG_CFG

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

◆ WRONG_CFG

std::string const testAdcConfig::WRONG_CFG = std::string(WAF_MODULE_PATH) + "/test/res/wrong.yml"