4#define BOOST_TEST_DYN_LINK
6#define BOOST_TEST_MODULE DummyBackendUnified
8#include <boost/test/unit_test.hpp>
9using namespace boost::unit_test_framework;
29BOOST_AUTO_TEST_SUITE(DummyBackendUnifiedTestSuite)
33static std::string
cdd(
"(ExceptionDummy:1?map=test3.map)");
34static auto exceptionDummy =
40 std::string
path() {
return "/DUMMY_INTERRUPT_6"; }
53 .disableAsyncReadInconsistency()
54 .disableSwitchReadOnly()
55 .disableSwitchWriteOnly()
56 .disableTestWriteNeverLosesData();
58 template<
typename UserType>
63 template<
typename UserType>
71 exceptionDummy->throwExceptionRead = enable;
72 exceptionDummy->throwExceptionWrite = enable;
73 exceptionDummy->throwExceptionOpen = enable;
78 std::cout <<
"*** testRegisterAccessor *** " << std::endl;
81BOOST_AUTO_TEST_SUITE_END()
Set of AccessMode flags with additional functionality for an easier handling.
static BackendFactory & getInstance()
Static function to get an instance of factory.
Class to test any backend for correct behaviour.
UnifiedBackendTest< typename boost::mpl::push_back< VECTOR_OF_REGISTERS_T, REG_T >::type > addRegister()
Add a register to be used by the test.
Descriptor for the test capabilities for each register.
constexpr TestCapabilities< _syncRead, TestCapability::disabled, _asyncReadInconsistency, _switchReadOnly, _switchWriteOnly, _writeNeverLosesData, _testWriteOnly, _testReadOnly, _testRawTransfer, _testCatalogue, _setRemoteValueIncrementsVersion, _testPartialAccessor > disableForceDataLossWrite() const
std::vector< std::vector< UserType > > generateValue()
size_t writeQueueLength()
ChimeraTK::AccessModeFlags supportedFlags()
void setForceRuntimeError(bool enable, size_t)
size_t nRuntimeErrorCases()
std::vector< std::vector< UserType > > getRemoteValue()
minimumUserType rawUserType
static constexpr auto capabilities
size_t nElementsPerChannel()
BOOST_AUTO_TEST_CASE(testRegisterAccessor)