ifw-fcf  5.0.0
Classes | Namespaces | Functions | Variables
testShutter.cpp File Reference

Unit tests for the Device class. More...

#include <fcf/devmgr/common/actionMgr.hpp>
#include <fcf/devmgr/common/config.hpp>
#include <fcf/devmgr/common/dataContext.hpp>
#include <fcf/devmgr/common/deviceFacade.hpp>
#include "fcf/devmgr/common/deviceMaker.hpp"
#include "fcf/devmgr/common/device.hpp"
#include "fcf/devmgr/common/deviceConfig.hpp"
#include <fcf/devmgr/common/deviceLcsIf.hpp>
#include "fcf/devmgr/devices/shutter.hpp"
#include <rad/dbAdapterRedis.hpp>
#include <rad/msgReplier.hpp>
#include <rad/smAdapter.hpp>
#include <Fcfif.hpp>
#include <mal/Cii.hpp>
#include <mal/Mal.hpp>
#include <mal/utility/LoadMal.hpp>
#include <boost/asio.hpp>
#include <core/utils/base/base.hpp>
#include <gtest/gtest.h>
#include "mock/mockIComm.hpp"
#include "mock/mockIDeviceConfig.hpp"

Classes

class  testShutter::MyDeviceConfig
 Dummy Test ShutterConfig class used for testing purposes. More...
 
class  testShutter::MyShutter
 Dummy Test shutter class used for testing purposes. More...
 
class  testShutter::TestShutter
 

Namespaces

 testShutter
 

Functions

void testShutter::ExpectRead (std::shared_ptr< MockIComm > comm_if, std::shared_ptr< testShutter::MyDeviceConfig > &dev_cfg, fcf::devmgr::shutter::ShutterControllerData &data, int repetitions)
 
 testShutter::TEST_F (TestShutter, Ctor)
 Test the Shutter device class constructor. More...
 
 testShutter::TEST_F (TestShutter, Connect)
 Test the connection to the LCS. More...
 
 testShutter::TEST_F (TestShutter, Init)
 Test the Initialisation of the device. More...
 
 testShutter::TEST_F (TestShutter, Ignore)
 Test the device ignore functionality. More...
 
 testShutter::TEST_F (TestShutter, Simulate)
 Test the device simulation functionality. More...
 
 testShutter::TEST_F (TestShutter, Setup)
 Test Shutter Setup method. More...
 
 testShutter::TEST_F (TestShutter, Status)
 Test the device Status method. More...
 
 testShutter::TEST_F (TestShutter, EndAcq)
 Test the end of an acquisition. More...
 
 testShutter::TEST_F (TestShutter, Local)
 Test the device local signal. More...
 
int main (int argc, char **argv)
 

Variables

std::string const testShutter::CONFIG_CFG = std::string("config/config.yaml")
 
std::string const testShutter::SHUTTER_CFG = std::string("config/testShutter.yaml")
 
std::string const testShutter::SHUTTER_MAP_CFG = std::string("config/testMapShutter.yaml")
 

Detailed Description

Unit tests for the Device class.

Author
mkiekebu

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)