ifw-daq  3.0.1
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
 
std::filesystem::path m_arcfile_path
 
- 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 88 of file testDaqController.cpp.

Constructor & Destructor Documentation

◆ TestDaqController()

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

Definition at line 90 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 162 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 115 of file testDaqController.cpp.

◆ SetUp()

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

Definition at line 92 of file testDaqController.cpp.

◆ TearDown()

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

Definition at line 153 of file testDaqController.cpp.

Member Data Documentation

◆ m_arcfile_path

std::filesystem::path daq::dpm::TestDaqController::m_arcfile_path
protected

Definition at line 186 of file testDaqController.cpp.

◆ m_daq

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

Definition at line 182 of file testDaqController.cpp.

◆ m_dpspec

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

Definition at line 178 of file testDaqController.cpp.

◆ m_initial_status

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

Definition at line 177 of file testDaqController.cpp.

◆ m_proc_factory

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

Definition at line 184 of file testDaqController.cpp.

◆ m_resolver

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

Definition at line 179 of file testDaqController.cpp.

◆ m_rsync_factory

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

Definition at line 183 of file testDaqController.cpp.

◆ m_ws_mock_ptr

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

Definition at line 181 of file testDaqController.cpp.


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