ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
testMotorLcsIf.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/deviceConfig.hpp>
#include <ifw/fcf/devmgr/common/deviceLcsIf.hpp>
#include "ifw/fcf/devmgr/devices/motorConfig.hpp"
#include "ifw/fcf/devmgr/devices/motorLcsIf.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  testMotorLcsIf::TestMotorConfig
 The TestMotorConfig class. More...
 
class  testMotorLcsIf::TestMotorLcsIf
 

Namespaces

namespace  testMotorLcsIf
 

Functions

void testMotorLcsIf::ExpectReadHelper (std::shared_ptr< MockICommAdapter > comm_if, std::shared_ptr< testMotorLcsIf::TestMotorConfig > &, int, int)
 
 testMotorLcsIf::TEST_F (TestMotorLcsIf, Ctor)
 
 testMotorLcsIf::TEST_F (TestMotorLcsIf, Config)
 
 testMotorLcsIf::TEST_F (TestMotorLcsIf, Connect)
 
 testMotorLcsIf::TEST_F (TestMotorLcsIf, MoveAbs)
 
void testMotorLcsIf::FeedStat (ifw::fnd::defs::SubscriptionHandler &handler, std::shared_ptr< testMotorLcsIf::TestMotorConfig > &dev_cfg, const std::string &stat_node, int value)
 
void testMotorLcsIf::FeedStatD (ifw::fnd::defs::SubscriptionHandler &handler, std::shared_ptr< testMotorLcsIf::TestMotorConfig > &dev_cfg, const std::string &stat_node, double value)
 
 testMotorLcsIf::TEST_F (TestMotorLcsIf, IsReady)
 
 testMotorLcsIf::TEST_F (TestMotorLcsIf, IsOperational)
 
 testMotorLcsIf::TEST_F (TestMotorLcsIf, IsMoving)
 
 testMotorLcsIf::TEST_F (TestMotorLcsIf, IsHwFailure)
 
 testMotorLcsIf::TEST_F (TestMotorLcsIf, ReadStatus)
 
 testMotorLcsIf::TEST_F (TestMotorLcsIf, Listener)
 
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 testMotorLcsIf::CONFIG_CFG = std::string("config/config.yaml")
 
std::string const testMotorLcsIf::MOTOR_CFG = std::string("config/testMotor.yaml")
 
std::string const testMotorLcsIf::MOTOR_MAP_CFG = std::string("config/testMapMotor.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).