ifw-daq
3.0.0-pre2
IFW Data Acquisition modules
|
OCM data acquisition library tests. More...
Files | |
file | dpmClient.cpp |
daq::DpmClient | |
file | dpmClient.hpp |
daq::DpmClient | |
file | dpmClientMock.hpp |
daq::DpmClient | |
file | statusObserver.hpp |
file | testAsyncOpAbort.cpp |
Unit test for op::AbortAsync. | |
file | testAsyncOpAwaitPrim.cpp |
Unit test for op::AwaitPrimAsync. | |
file | testAsyncOpAwaitState.cpp |
Unit test for op::AwaitStateAsync. | |
file | testAsyncOpBase.cpp |
Definition of TestAsyncOpBase. | |
file | testAsyncOpBase.hpp |
Contains declaration for async operations shared base class. | |
file | testAsyncOpStart.cpp |
Unit test for op::StartAsync. | |
file | testAsyncOpStop.cpp |
Unit test for daq::op::StopAsync. | |
file | testConfigManager.cpp |
Test log4cplus helpers. | |
file | testDaqContext.cpp |
Test daq::Status and daq::ObservableStatus. | |
file | testDpmDaqController.cpp |
Unit test for daq::DpmDaqController | |
file | testDpPart.cpp |
Unit test for daq::DpPart | |
file | testEventLog.cpp |
Unit test for types declared in daq/event.hpp. | |
file | testEventLogObserver.cpp |
Unit test for types declared in daq/eventLogObserverLogger.hpp. | |
file | testException.cpp |
Exception test. | |
file | testLog4cplus.cpp |
Test log4cplus helpers. | |
file | testManager.cpp |
daq::ManagerImpl tests | |
file | testOcmDaqController.cpp |
Unit test for daq::OcmDaqController | |
file | testPendingReplies.cpp |
Tests for PendingReplies and related. | |
file | testSource.cpp |
Test daq::Source and related. | |
file | testState.cpp |
Test State functions. | |
file | testStatus.cpp |
Test daq::Status and daq::ObservableStatus. | |
file | utils.hpp |
Defines shared test utilities. | |
Classes | |
struct | StatusObserverMock |
Simple observer used for testing. More... | |
struct | TestAsyncOpAbort |
struct | TestAsyncOpAwaitPrim |
struct | TestAsyncOpAwaitState |
struct | TestAsyncOpBase |
Base fixture for async operation tests. More... | |
struct | TestAsyncOpStart |
struct | TestAsyncOpStop |
Note: TestAsyncOpBase set. More... | |
class | daq::TestDpmDaqController |
Fixture for daq::DaqController life cycle tests. More... | |
class | TestManagerImplLifecycle |
class | TestManagerImpl |
class | TestOcmDaqControllerLifeCycle |
Fixture for daq::DaqController life cycle tests. More... | |
struct | TestState |
Developer notes: OcmDaqController use boost::when_all to compose futures. More... | |
class | TestPendingReplies |
Test fixture for PendingReplies tests. More... | |
class | daq::TestSource |
Test fixture for source tests. More... | |
class | TestObservableStatus |
ObservableStatus test fixture. More... | |
Functions | |
template<class Future = void> | |
void | MakeTestProgress (boost::asio::io_context &io_ctx, Future *fut=nullptr) |
Test helper that progress the test by executing pending jobs and optionally wait for a future to be ready. More... | |
template<class Future = void> | |
void | daq::test::MakeTestProgress (boost::asio::io_context &io_ctx, Future *fut=nullptr) |
Test helper that progress the test by executing pending jobs and optionally wait for a future to be ready. More... | |
OCM data acquisition library tests.
struct StatusObserverMock |
Simple observer used for testing.
Definition at line 22 of file statusObserver.hpp.
Public Member Functions | |
MOCK_METHOD1 (CallOperator, void(daq::ObservableStatus const &)) | |
void | operator() (daq::ObservableStatus const &s) |
StatusObserverMock::MOCK_METHOD1 | ( | CallOperator | , |
void(daq::ObservableStatus const &) | |||
) |
|
inline |
Definition at line 24 of file statusObserver.hpp.
struct TestAsyncOpAbort |
Definition at line 27 of file testAsyncOpAbort.cpp.
Additional Inherited Members | |
Public Member Functions inherited from TestAsyncOpBase | |
TestAsyncOpBase () | |
void | SetUp () override |
void | TearDown () override |
template<class SourceType > | |
std::vector< daq::Source< SourceType > > | MakeSources (std::vector< SourceType > sources) |
daq::op::AsyncOpParams | MakeParams () |
Public Attributes inherited from TestAsyncOpBase | |
std::shared_ptr< daq::RecCmdsAsyncMock > | m_prim_rr_client |
std::shared_ptr< daq::RecCmdsAsyncMock > | m_prim_rr_client2 |
std::shared_ptr< daq::MetaDaqAsyncMock > | m_meta_rr_client |
std::shared_ptr< daq::MetaDaqAsyncMock > | m_meta_rr_client2 |
boost::asio::io_context | m_io_ctx |
rad::IoExecutor | m_executor |
log4cplus::Logger | m_logger |
std::string | m_id |
StatusObserverMock | m_observer |
std::shared_ptr< daq::ObservableStatus > | m_status |
std::shared_ptr< daq::ObservableEventLog > | m_event_log |
daq::op::AlertState | m_alerts |
std::shared_ptr< daq::PendingReplies > | m_pending_replies |
std::vector< daq::Source< daq::PrimSource > > | m_prim_sources |
std::vector< daq::Source< daq::MetaSource > > | m_meta_sources |
boost::promise< std::shared_ptr< recif::RecStatus > > | m_recstatus_promise1 |
boost::promise< std::shared_ptr< recif::RecStatus > > | m_recstatus_promise2 |
boost::promise< std::string > | m_string_promise1 |
boost::promise< std::string > | m_string_promise2 |
struct TestAsyncOpAwaitPrim |
Definition at line 165 of file testAsyncOpAwaitPrim.cpp.
Public Member Functions | |
std::shared_ptr< recif::RecWaitStatus > | MakeWaitNotCompletedStatus () |
std::shared_ptr< recif::RecWaitStatus > | MakeWaitCompletedStatus () |
daq::op::AwaitOpParams | MakeAwaitOpParams () |
Public Member Functions inherited from TestAsyncOpBase | |
TestAsyncOpBase () | |
void | SetUp () override |
void | TearDown () override |
template<class SourceType > | |
std::vector< daq::Source< SourceType > > | MakeSources (std::vector< SourceType > sources) |
daq::op::AsyncOpParams | MakeParams () |
|
inline |
Definition at line 183 of file testAsyncOpAwaitPrim.cpp.
|
inline |
Definition at line 173 of file testAsyncOpAwaitPrim.cpp.
|
inline |
Definition at line 166 of file testAsyncOpAwaitPrim.cpp.
struct TestAsyncOpAwaitState |
Definition at line 28 of file testAsyncOpAwaitState.cpp.
Public Member Functions | |
TestAsyncOpAwaitState ()=default | |
void | SetUp () override |
void | TearDown () override |
Public Attributes | |
boost::asio::io_context | m_io_ctx |
std::shared_ptr< daq::ObservableStatus > | m_status |
log4cplus::Logger | m_logger |
|
default |
|
inlineoverride |
Definition at line 31 of file testAsyncOpAwaitState.cpp.
|
inlineoverride |
Definition at line 35 of file testAsyncOpAwaitState.cpp.
boost::asio::io_context TestAsyncOpAwaitState::m_io_ctx |
Definition at line 37 of file testAsyncOpAwaitState.cpp.
log4cplus::Logger TestAsyncOpAwaitState::m_logger |
Definition at line 39 of file testAsyncOpAwaitState.cpp.
std::shared_ptr<daq::ObservableStatus> TestAsyncOpAwaitState::m_status |
Definition at line 38 of file testAsyncOpAwaitState.cpp.
struct TestAsyncOpBase |
Base fixture for async operation tests.
Definition at line 38 of file testAsyncOpBase.hpp.
Public Member Functions | |
TestAsyncOpBase () | |
void | SetUp () override |
void | TearDown () override |
template<class SourceType > | |
std::vector< daq::Source< SourceType > > | MakeSources (std::vector< SourceType > sources) |
daq::op::AsyncOpParams | MakeParams () |
Public Attributes | |
std::shared_ptr< daq::RecCmdsAsyncMock > | m_prim_rr_client |
std::shared_ptr< daq::RecCmdsAsyncMock > | m_prim_rr_client2 |
std::shared_ptr< daq::MetaDaqAsyncMock > | m_meta_rr_client |
std::shared_ptr< daq::MetaDaqAsyncMock > | m_meta_rr_client2 |
boost::asio::io_context | m_io_ctx |
rad::IoExecutor | m_executor |
log4cplus::Logger | m_logger |
std::string | m_id |
StatusObserverMock | m_observer |
std::shared_ptr< daq::ObservableStatus > | m_status |
std::shared_ptr< daq::ObservableEventLog > | m_event_log |
daq::op::AlertState | m_alerts |
std::shared_ptr< daq::PendingReplies > | m_pending_replies |
std::vector< daq::Source< daq::PrimSource > > | m_prim_sources |
std::vector< daq::Source< daq::MetaSource > > | m_meta_sources |
boost::promise< std::shared_ptr< recif::RecStatus > > | m_recstatus_promise1 |
boost::promise< std::shared_ptr< recif::RecStatus > > | m_recstatus_promise2 |
boost::promise< std::string > | m_string_promise1 |
boost::promise< std::string > | m_string_promise2 |
TestAsyncOpBase::TestAsyncOpBase | ( | ) |
Definition at line 13 of file testAsyncOpBase.cpp.
op::AsyncOpParams TestAsyncOpBase::MakeParams | ( | ) |
Definition at line 50 of file testAsyncOpBase.cpp.
|
inline |
Definition at line 69 of file testAsyncOpBase.hpp.
|
override |
Definition at line 23 of file testAsyncOpBase.cpp.
|
override |
Definition at line 43 of file testAsyncOpBase.cpp.
daq::op::AlertState TestAsyncOpBase::m_alerts |
Definition at line 52 of file testAsyncOpBase.hpp.
std::shared_ptr<daq::ObservableEventLog> TestAsyncOpBase::m_event_log |
Definition at line 51 of file testAsyncOpBase.hpp.
rad::IoExecutor TestAsyncOpBase::m_executor |
Definition at line 46 of file testAsyncOpBase.hpp.
std::string TestAsyncOpBase::m_id |
Definition at line 48 of file testAsyncOpBase.hpp.
boost::asio::io_context TestAsyncOpBase::m_io_ctx |
Definition at line 45 of file testAsyncOpBase.hpp.
log4cplus::Logger TestAsyncOpBase::m_logger |
Definition at line 47 of file testAsyncOpBase.hpp.
std::shared_ptr<daq::MetaDaqAsyncMock> TestAsyncOpBase::m_meta_rr_client |
Definition at line 41 of file testAsyncOpBase.hpp.
std::shared_ptr<daq::MetaDaqAsyncMock> TestAsyncOpBase::m_meta_rr_client2 |
Definition at line 42 of file testAsyncOpBase.hpp.
std::vector<daq::Source<daq::MetaSource> > TestAsyncOpBase::m_meta_sources |
Definition at line 55 of file testAsyncOpBase.hpp.
StatusObserverMock TestAsyncOpBase::m_observer |
Definition at line 49 of file testAsyncOpBase.hpp.
std::shared_ptr<daq::PendingReplies> TestAsyncOpBase::m_pending_replies |
Definition at line 53 of file testAsyncOpBase.hpp.
std::shared_ptr<daq::RecCmdsAsyncMock> TestAsyncOpBase::m_prim_rr_client |
Definition at line 39 of file testAsyncOpBase.hpp.
std::shared_ptr<daq::RecCmdsAsyncMock> TestAsyncOpBase::m_prim_rr_client2 |
Definition at line 40 of file testAsyncOpBase.hpp.
std::vector<daq::Source<daq::PrimSource> > TestAsyncOpBase::m_prim_sources |
Definition at line 54 of file testAsyncOpBase.hpp.
boost::promise<std::shared_ptr<recif::RecStatus> > TestAsyncOpBase::m_recstatus_promise1 |
Definition at line 58 of file testAsyncOpBase.hpp.
boost::promise<std::shared_ptr<recif::RecStatus> > TestAsyncOpBase::m_recstatus_promise2 |
Definition at line 59 of file testAsyncOpBase.hpp.
std::shared_ptr<daq::ObservableStatus> TestAsyncOpBase::m_status |
Definition at line 50 of file testAsyncOpBase.hpp.
boost::promise<std::string> TestAsyncOpBase::m_string_promise1 |
Definition at line 60 of file testAsyncOpBase.hpp.
boost::promise<std::string> TestAsyncOpBase::m_string_promise2 |
Definition at line 61 of file testAsyncOpBase.hpp.
struct TestAsyncOpStart |
Definition at line 28 of file testAsyncOpStart.cpp.
Additional Inherited Members | |
Public Member Functions inherited from TestAsyncOpBase | |
TestAsyncOpBase () | |
void | SetUp () override |
void | TearDown () override |
template<class SourceType > | |
std::vector< daq::Source< SourceType > > | MakeSources (std::vector< SourceType > sources) |
daq::op::AsyncOpParams | MakeParams () |
Public Attributes inherited from TestAsyncOpBase | |
std::shared_ptr< daq::RecCmdsAsyncMock > | m_prim_rr_client |
std::shared_ptr< daq::RecCmdsAsyncMock > | m_prim_rr_client2 |
std::shared_ptr< daq::MetaDaqAsyncMock > | m_meta_rr_client |
std::shared_ptr< daq::MetaDaqAsyncMock > | m_meta_rr_client2 |
boost::asio::io_context | m_io_ctx |
rad::IoExecutor | m_executor |
log4cplus::Logger | m_logger |
std::string | m_id |
StatusObserverMock | m_observer |
std::shared_ptr< daq::ObservableStatus > | m_status |
std::shared_ptr< daq::ObservableEventLog > | m_event_log |
daq::op::AlertState | m_alerts |
std::shared_ptr< daq::PendingReplies > | m_pending_replies |
std::vector< daq::Source< daq::PrimSource > > | m_prim_sources |
std::vector< daq::Source< daq::MetaSource > > | m_meta_sources |
boost::promise< std::shared_ptr< recif::RecStatus > > | m_recstatus_promise1 |
boost::promise< std::shared_ptr< recif::RecStatus > > | m_recstatus_promise2 |
boost::promise< std::string > | m_string_promise1 |
boost::promise< std::string > | m_string_promise2 |
struct TestAsyncOpStop |
Note: TestAsyncOpBase set.
Definition at line 30 of file testAsyncOpStop.cpp.
Public Member Functions | |
void | SetUp () override |
Public Member Functions inherited from TestAsyncOpBase | |
TestAsyncOpBase () | |
void | SetUp () override |
void | TearDown () override |
template<class SourceType > | |
std::vector< daq::Source< SourceType > > | MakeSources (std::vector< SourceType > sources) |
daq::op::AsyncOpParams | MakeParams () |
Public Attributes | |
std::string | m_keywords |
std::string | m_empty |
Public Attributes inherited from TestAsyncOpBase | |
std::shared_ptr< daq::RecCmdsAsyncMock > | m_prim_rr_client |
std::shared_ptr< daq::RecCmdsAsyncMock > | m_prim_rr_client2 |
std::shared_ptr< daq::MetaDaqAsyncMock > | m_meta_rr_client |
std::shared_ptr< daq::MetaDaqAsyncMock > | m_meta_rr_client2 |
boost::asio::io_context | m_io_ctx |
rad::IoExecutor | m_executor |
log4cplus::Logger | m_logger |
std::string | m_id |
StatusObserverMock | m_observer |
std::shared_ptr< daq::ObservableStatus > | m_status |
std::shared_ptr< daq::ObservableEventLog > | m_event_log |
daq::op::AlertState | m_alerts |
std::shared_ptr< daq::PendingReplies > | m_pending_replies |
std::vector< daq::Source< daq::PrimSource > > | m_prim_sources |
std::vector< daq::Source< daq::MetaSource > > | m_meta_sources |
boost::promise< std::shared_ptr< recif::RecStatus > > | m_recstatus_promise1 |
boost::promise< std::shared_ptr< recif::RecStatus > > | m_recstatus_promise2 |
boost::promise< std::string > | m_string_promise1 |
boost::promise< std::string > | m_string_promise2 |
|
inlineoverride |
Definition at line 31 of file testAsyncOpStop.cpp.
std::string TestAsyncOpStop::m_empty |
Definition at line 50 of file testAsyncOpStop.cpp.
std::string TestAsyncOpStop::m_keywords |
Definition at line 49 of file testAsyncOpStop.cpp.
class daq::TestDpmDaqController |
Fixture for daq::DaqController life cycle tests.
Definition at line 26 of file testDpmDaqController.cpp.
Public Member Functions | |
TestDpmDaqController () | |
void | SetUp () override |
void | PostSetUp () |
Public Attributes | |
boost::asio::io_context | m_io_ctx |
std::shared_ptr< ObservableStatus > | m_status |
std::shared_ptr< ObservableEventLog > | m_event_log |
DaqContext | m_props |
std::shared_ptr< DpmClientMock > | m_dpm_client |
Status | m_dpm_status = Status("id", "fileid") |
Fake status update sample from DPM. More... | |
std::shared_ptr< DpmDaqController > | m_controller |
|
inline |
Definition at line 28 of file testDpmDaqController.cpp.
|
inline |
Definition at line 47 of file testDpmDaqController.cpp.
|
inlineoverride |
Definition at line 42 of file testDpmDaqController.cpp.
std::shared_ptr<DpmDaqController> daq::TestDpmDaqController::m_controller |
Definition at line 62 of file testDpmDaqController.cpp.
std::shared_ptr<DpmClientMock> daq::TestDpmDaqController::m_dpm_client |
Definition at line 56 of file testDpmDaqController.cpp.
Fake status update sample from DPM.
Definition at line 60 of file testDpmDaqController.cpp.
std::shared_ptr<ObservableEventLog> daq::TestDpmDaqController::m_event_log |
Definition at line 54 of file testDpmDaqController.cpp.
boost::asio::io_context daq::TestDpmDaqController::m_io_ctx |
Definition at line 52 of file testDpmDaqController.cpp.
DaqContext daq::TestDpmDaqController::m_props |
Definition at line 55 of file testDpmDaqController.cpp.
std::shared_ptr<ObservableStatus> daq::TestDpmDaqController::m_status |
Definition at line 53 of file testDpmDaqController.cpp.
class TestManagerImplLifecycle |
Definition at line 48 of file testManager.cpp.
Public Member Functions | |
void | SetUp () override |
void | TearDown () override |
Public Member Functions inherited from FixtureBase | |
template<class T > | |
T | ExpectNoException (boost::future< T > &f) |
Additional Inherited Members | |
Public Attributes inherited from FixtureBase | |
ManagerParams | m_params = {"INS"} |
|
inlineoverride |
Definition at line 50 of file testManager.cpp.
|
inlineoverride |
Definition at line 52 of file testManager.cpp.
class TestManagerImpl |
Definition at line 59 of file testManager.cpp.
Public Member Functions | |
TestManagerImpl () | |
void | SetUp () override |
Creates manager and adds two data acquisitions. More... | |
auto | StartDaq1 () -> boost::future< State > |
void | TearDown () override |
Public Member Functions inherited from FixtureBase | |
template<class T > | |
T | ExpectNoException (boost::future< T > &f) |
Public Attributes | |
boost::asio::io_context | m_io_ctx |
rad::IoExecutor | m_executor |
MockWorkspace | m_workspace |
std::shared_ptr< daq::ObservableEventLog > | m_event_log |
std::string | m_daq_id_1 |
std::string | m_daq_id_2 |
DaqContext | m_daq_ctx_1 |
DaqContext | m_daq_ctx_2 |
std::shared_ptr< DaqControllerMock > | m_daq1 |
std::shared_ptr< DaqControllerMock > | m_daq2 |
std::shared_ptr< DaqControllerMock > | m_dpm_daq1 |
std::shared_ptr< DaqControllerMock > | m_dpm_daq2 |
std::shared_ptr< ObservableStatus > | m_daq1_status |
std::shared_ptr< ObservableStatus > | m_daq2_status |
std::shared_ptr< ObservableStatus > | m_daq1_dpm_status |
std::shared_ptr< ObservableStatus > | m_daq2_dpm_status |
DaqControllerFactoryFake | m_daq_factory |
ManagerImpl | m_manager |
Public Attributes inherited from FixtureBase | |
ManagerParams | m_params = {"INS"} |
|
inline |
Definition at line 61 of file testManager.cpp.
|
inlineoverride |
Creates manager and adds two data acquisitions.
Definition at line 75 of file testManager.cpp.
|
inline |
Definition at line 137 of file testManager.cpp.
|
inlineoverride |
Definition at line 146 of file testManager.cpp.
std::shared_ptr<DaqControllerMock> TestManagerImpl::m_daq1 |
Definition at line 163 of file testManager.cpp.
std::shared_ptr<ObservableStatus> TestManagerImpl::m_daq1_dpm_status |
Definition at line 169 of file testManager.cpp.
std::shared_ptr<ObservableStatus> TestManagerImpl::m_daq1_status |
Definition at line 167 of file testManager.cpp.
std::shared_ptr<DaqControllerMock> TestManagerImpl::m_daq2 |
Definition at line 164 of file testManager.cpp.
std::shared_ptr<ObservableStatus> TestManagerImpl::m_daq2_dpm_status |
Definition at line 170 of file testManager.cpp.
std::shared_ptr<ObservableStatus> TestManagerImpl::m_daq2_status |
Definition at line 168 of file testManager.cpp.
DaqContext TestManagerImpl::m_daq_ctx_1 |
Definition at line 161 of file testManager.cpp.
DaqContext TestManagerImpl::m_daq_ctx_2 |
Definition at line 162 of file testManager.cpp.
DaqControllerFactoryFake TestManagerImpl::m_daq_factory |
Definition at line 171 of file testManager.cpp.
std::string TestManagerImpl::m_daq_id_1 |
Definition at line 159 of file testManager.cpp.
std::string TestManagerImpl::m_daq_id_2 |
Definition at line 160 of file testManager.cpp.
std::shared_ptr<DaqControllerMock> TestManagerImpl::m_dpm_daq1 |
Definition at line 165 of file testManager.cpp.
std::shared_ptr<DaqControllerMock> TestManagerImpl::m_dpm_daq2 |
Definition at line 166 of file testManager.cpp.
std::shared_ptr<daq::ObservableEventLog> TestManagerImpl::m_event_log |
Definition at line 158 of file testManager.cpp.
rad::IoExecutor TestManagerImpl::m_executor |
Definition at line 156 of file testManager.cpp.
boost::asio::io_context TestManagerImpl::m_io_ctx |
Definition at line 155 of file testManager.cpp.
ManagerImpl TestManagerImpl::m_manager |
Definition at line 172 of file testManager.cpp.
MockWorkspace TestManagerImpl::m_workspace |
Definition at line 157 of file testManager.cpp.
class TestOcmDaqControllerLifeCycle |
Fixture for daq::DaqController life cycle tests.
Definition at line 38 of file testOcmDaqController.cpp.
Public Member Functions | |
TestOcmDaqControllerLifeCycle () | |
Public Attributes | |
boost::asio::io_context | m_io_ctx |
std::shared_ptr< ObservableStatus > | m_status |
std::shared_ptr< ObservableEventLog > | m_event_log |
std::shared_ptr< PrimSource::RrClient > | m_prim_rr_client |
std::shared_ptr< MetaSource::RrClient > | m_meta_rr_client |
OcmAsyncOperations | m_ops |
DaqContext | m_context |
DaqSources | m_sources |
|
inline |
Definition at line 40 of file testOcmDaqController.cpp.
DaqContext TestOcmDaqControllerLifeCycle::m_context |
Definition at line 66 of file testOcmDaqController.cpp.
std::shared_ptr<ObservableEventLog> TestOcmDaqControllerLifeCycle::m_event_log |
Definition at line 62 of file testOcmDaqController.cpp.
boost::asio::io_context TestOcmDaqControllerLifeCycle::m_io_ctx |
Definition at line 60 of file testOcmDaqController.cpp.
std::shared_ptr<MetaSource::RrClient> TestOcmDaqControllerLifeCycle::m_meta_rr_client |
Definition at line 64 of file testOcmDaqController.cpp.
OcmAsyncOperations TestOcmDaqControllerLifeCycle::m_ops |
Definition at line 65 of file testOcmDaqController.cpp.
std::shared_ptr<PrimSource::RrClient> TestOcmDaqControllerLifeCycle::m_prim_rr_client |
Definition at line 63 of file testOcmDaqController.cpp.
DaqSources TestOcmDaqControllerLifeCycle::m_sources |
Definition at line 67 of file testOcmDaqController.cpp.
std::shared_ptr<ObservableStatus> TestOcmDaqControllerLifeCycle::m_status |
Definition at line 61 of file testOcmDaqController.cpp.
struct TestState |
Developer notes: OcmDaqController use boost::when_all to compose futures.
This does not support executors and will spawn a thread to perform the work. This means that the tests will either have to block indefinitely with future::get() or use a timeout.
Definition at line 92 of file testOcmDaqController.cpp.
Public Member Functions | |
TestState () | |
void | SetUp () override |
void | TearDown () override |
virtual void | PreDaqControllerHook () |
virtual void | PreStartAsyncHook () |
void | StartDaq () |
Executes a successful StartAsync() call. More... | |
void | AbortDaq () |
void | StopDaq () |
Public Attributes | |
std::shared_ptr< PrimSource::RrClient > | m_prim_rr_client |
std::shared_ptr< MetaDaqAsyncMock > | m_meta_rr_client |
std::shared_ptr< MetaDaqAsyncMock > | m_meta_rr_client2 |
std::unique_ptr< MockAsyncOperations > | m_mock_ops |
boost::asio::io_context | m_io_ctx |
StatusObserverMock | m_observer |
std::shared_ptr< ObservableStatus > | m_status |
std::shared_ptr< ObservableEventLog > | m_event_log |
std::shared_ptr< OcmDaqController > | m_daq |
DaqContext | m_context |
DaqSources | m_sources |
std::vector< DpPart > | m_files |
fits::KeywordVector | m_keywords |
|
inline |
Definition at line 108 of file testOcmDaqController.cpp.
|
inline |
Definition at line 189 of file testOcmDaqController.cpp.
|
inlinevirtual |
Reimplemented in TestDaqControllerAwait, TestStopped, and TestAcquiring.
Definition at line 154 of file testOcmDaqController.cpp.
|
inlinevirtual |
Reimplemented in TestDaqControllerAwait.
Definition at line 156 of file testOcmDaqController.cpp.
|
inlineoverride |
Definition at line 114 of file testOcmDaqController.cpp.
|
inline |
Executes a successful StartAsync() call.
Definition at line 162 of file testOcmDaqController.cpp.
|
inline |
Definition at line 220 of file testOcmDaqController.cpp.
|
inlineoverride |
Definition at line 147 of file testOcmDaqController.cpp.
DaqContext TestState::m_context |
Definition at line 103 of file testOcmDaqController.cpp.
std::shared_ptr<OcmDaqController> TestState::m_daq |
Definition at line 102 of file testOcmDaqController.cpp.
std::shared_ptr<ObservableEventLog> TestState::m_event_log |
Definition at line 101 of file testOcmDaqController.cpp.
std::vector<DpPart> TestState::m_files |
Definition at line 105 of file testOcmDaqController.cpp.
boost::asio::io_context TestState::m_io_ctx |
Definition at line 98 of file testOcmDaqController.cpp.
fits::KeywordVector TestState::m_keywords |
Definition at line 106 of file testOcmDaqController.cpp.
std::shared_ptr<MetaDaqAsyncMock> TestState::m_meta_rr_client |
Definition at line 94 of file testOcmDaqController.cpp.
std::shared_ptr<MetaDaqAsyncMock> TestState::m_meta_rr_client2 |
Definition at line 95 of file testOcmDaqController.cpp.
std::unique_ptr<MockAsyncOperations> TestState::m_mock_ops |
Definition at line 96 of file testOcmDaqController.cpp.
StatusObserverMock TestState::m_observer |
Definition at line 99 of file testOcmDaqController.cpp.
std::shared_ptr<PrimSource::RrClient> TestState::m_prim_rr_client |
Definition at line 93 of file testOcmDaqController.cpp.
DaqSources TestState::m_sources |
Definition at line 104 of file testOcmDaqController.cpp.
std::shared_ptr<ObservableStatus> TestState::m_status |
Definition at line 100 of file testOcmDaqController.cpp.
class TestPendingReplies |
Test fixture for PendingReplies tests.
Definition at line 21 of file testPendingReplies.cpp.
Public Member Functions | |
void | SetUp () override |
void | TearDown () override |
Protected Attributes | |
std::shared_ptr< PendingReplies > | pending |
|
inlineoverride |
Definition at line 23 of file testPendingReplies.cpp.
|
inlineoverride |
Definition at line 26 of file testPendingReplies.cpp.
|
protected |
Definition at line 29 of file testPendingReplies.cpp.
class daq::TestSource |
Test fixture for source tests.
Definition at line 20 of file testSource.cpp.
Public Member Functions | |
void | SetUp () override |
void | TearDown () override |
Protected Attributes | |
std::shared_ptr< PrimSource::RrClient > | m_prim_rr_client |
std::shared_ptr< MetaSource::RrClient > | m_meta_rr_client |
|
inlineoverride |
Definition at line 22 of file testSource.cpp.
|
inlineoverride |
Definition at line 27 of file testSource.cpp.
|
protected |
Definition at line 31 of file testSource.cpp.
|
protected |
Definition at line 30 of file testSource.cpp.
class TestObservableStatus |
ObservableStatus test fixture.
Definition at line 22 of file testStatus.cpp.
void MakeTestProgress | ( | boost::asio::io_context & | io_ctx, |
Future * | fut = nullptr |
||
) |
void daq::test::MakeTestProgress | ( | boost::asio::io_context & | io_ctx, |
Future * | fut = nullptr |
||
) |
Test helper that progress the test by executing pending jobs and optionally wait for a future to be ready.
Definition at line 47 of file progress.hpp.