ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
testMAtrkConfig.cpp File Reference
#include <ifw/fcf/devmgr/common/actionMgr.hpp>
#include <ifw/fcf/devmgr/common/config.hpp>
#include <ifw/fcf/devmgr/common/dataContext.hpp>
#include <ifw/fcf/devmgr/common/deviceFacade.hpp>
#include <ifw/fcf/devmgr/common/device.hpp>
#include <ifw/fcf/devmgr/common/deviceLcsIf.hpp>
#include <ifw/fcf/devmgr/devices/matrkConfig.hpp>
#include <rad/dbAdapterRedis.hpp>
#include <rad/msgReplier.hpp>
#include <rad/smAdapter.hpp>
#include <boost/asio.hpp>
#include <gtest/gtest.h>
#include "mock/mockICommAdapter.hpp"
#include "mock/mockHelpers.hpp"

Classes

class  testMAtrkConfig::TestMAtrkConfig
 

Namespaces

namespace  testMAtrkConfig
 

Functions

 testMAtrkConfig::TEST_F (TestMAtrkConfig, Ctor)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, ReadConfig)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, GetIdentifier)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, GetPrefix)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, GetAddress)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, GetType)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, GetNamespace)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, GetNodeId)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, GetProcId)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, GetObjId)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, FindMode)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, GetModeStr)
 
 testMAtrkConfig::TEST_F (TestMAtrkConfig, GetMotorName)
 
ifw::fnd::defs::CallResult MakeRpcReply (short code, ifw::fnd::defs::Status batch_status=ifw::fnd::defs::Status::Ok)
 Build a CallResult that carries a single short reply code, matching the convention every FCF RPC uses (RPC reply in output_arguments[0].data.value as short).
 
ifw::fnd::defs::Result MakeOk ()
 Build a generic "Ok" Result.
 

Variables

std::string const testMAtrkConfig::CONFIG_CFG = std::string("config/config.yaml")
 
std::string const testMAtrkConfig::MATRK1_CFG = std::string("config/testMAtrk.yaml")
 
std::string const testMAtrkConfig::WRONG_CFG = std::string("config/wrong.yaml")
 

Function Documentation

◆ MakeOk()

ifw::fnd::defs::Result ifw::fcf::devmgr::test::MakeOk ( )
inline

Build a generic "Ok" Result.

◆ MakeRpcReply()

ifw::fnd::defs::CallResult ifw::fcf::devmgr::test::MakeRpcReply ( short code,
ifw::fnd::defs::Status batch_status = ifw::fnd::defs::Status::Ok )
inline

Build a CallResult that carries a single short reply code, matching the convention every FCF RPC uses (RPC reply in output_arguments[0].data.value as short).