ifw-daq  3.0.0-pre2
IFW Data Acquisition modules
Public Member Functions | Protected Attributes | List of all members
daq::dpm::TestDaqController Class Reference
+ Inheritance diagram for daq::dpm::TestDaqController:

Public Member Functions

 TestDaqController ()
 
void SetUp () override
 
void PostSetUp ()
 Specifically sets up expectations and other things based on current state. More...
 
void TearDown () override
 
template<class Pred >
void PollUntil (Pred &&p)
 Poll one handler at a time until predicate has been satisifed or io_context runs out of work. More...
 
- Public Member Functions inherited from daq::dpm::TestDaqControllerBase
 TestDaqControllerBase ()
 
void SetUp () override
 
void TearDown () override
 

Protected Attributes

Status m_initial_status = {}
 
json::DpSpec m_dpspec
 
SourceResolver m_resolver
 
daq::dpm::MockDaqWorkspacem_ws_mock_ptr = nullptr
 
std::unique_ptr< DaqControllerImplm_daq
 
FakeRsyncFactory m_rsync_factory
 
FakeProcFactory m_proc_factory
 
- Protected Attributes inherited from daq::dpm::TestDaqControllerBase
Resources m_resources
 
boost::asio::io_context m_io_ctx
 
rad::IoExecutor m_executor
 
DaqControllerOptions m_options
 

Detailed Description

Definition at line 87 of file testDaqController.cpp.

Constructor & Destructor Documentation

◆ TestDaqController()

daq::dpm::TestDaqController::TestDaqController ( )
inline

Definition at line 89 of file testDaqController.cpp.

Member Function Documentation

◆ PollUntil()

template<class Pred >
void daq::dpm::TestDaqController::PollUntil ( Pred &&  p)
inline

Poll one handler at a time until predicate has been satisifed or io_context runs out of work.

Definition at line 153 of file testDaqController.cpp.

◆ PostSetUp()

void daq::dpm::TestDaqController::PostSetUp ( )
inline

Specifically sets up expectations and other things based on current state.

It considers:

  • m_dpspec for sources and populates m_resolver based on that.
  • m_initial_status controls which state to start from.

Definition at line 109 of file testDaqController.cpp.

◆ SetUp()

void daq::dpm::TestDaqController::SetUp ( )
inlineoverride

Definition at line 91 of file testDaqController.cpp.

◆ TearDown()

void daq::dpm::TestDaqController::TearDown ( )
inlineoverride

Definition at line 144 of file testDaqController.cpp.

Member Data Documentation

◆ m_daq

std::unique_ptr<DaqControllerImpl> daq::dpm::TestDaqController::m_daq
protected

Definition at line 168 of file testDaqController.cpp.

◆ m_dpspec

json::DpSpec daq::dpm::TestDaqController::m_dpspec
protected

Definition at line 164 of file testDaqController.cpp.

◆ m_initial_status

Status daq::dpm::TestDaqController::m_initial_status = {}
protected

Definition at line 163 of file testDaqController.cpp.

◆ m_proc_factory

FakeProcFactory daq::dpm::TestDaqController::m_proc_factory
protected

Definition at line 170 of file testDaqController.cpp.

◆ m_resolver

SourceResolver daq::dpm::TestDaqController::m_resolver
protected

Definition at line 165 of file testDaqController.cpp.

◆ m_rsync_factory

FakeRsyncFactory daq::dpm::TestDaqController::m_rsync_factory
protected

Definition at line 169 of file testDaqController.cpp.

◆ m_ws_mock_ptr

daq::dpm::MockDaqWorkspace* daq::dpm::TestDaqController::m_ws_mock_ptr = nullptr
protected

Definition at line 167 of file testDaqController.cpp.


The documentation for this class was generated from the following file: