SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
TestHelpers::observers::MockObserverWriter< Metavariables > Struct Template Reference

Component that mocks the ObserverWriter. More...

#include <MockWriteReductionDataRow.hpp>

Public Types

using metavariables = Metavariables
using chare_type = ActionTesting::MockNodeGroupChare
using array_index = int
using phase_dependent_action_list
using component_being_mocked = ::observers::ObserverWriter<Metavariables>
using replace_these_threaded_actions
using with_these_threaded_actions = tmpl::list<MockWriteReductionDataRow>

Detailed Description

template<typename Metavariables>
struct TestHelpers::observers::MockObserverWriter< Metavariables >

Component that mocks the ObserverWriter.

Details

The only tag that is added to the DataBox is the MockReductionFileTag. To initialize this component do

mock_observer_writer>(make_not_null(&runner), {});

This component replaces the WriteReductionDataRow threaded action with the MockWriteReductionDataRow threaded action.

Member Typedef Documentation

◆ phase_dependent_action_list

template<typename Metavariables>
using TestHelpers::observers::MockObserverWriter< Metavariables >::phase_dependent_action_list
Initial value:
tmpl::list<
tmpl::list<ActionTesting::InitializeDataBox<
tmpl::list<MockReductionFileTag>>>>>
@ Initialization
initial phase of an executable
Definition Phase.hpp:67
List of all the actions to be executed in the specified phase.
Definition PhaseDependentActionList.hpp:17

◆ replace_these_threaded_actions

template<typename Metavariables>
using TestHelpers::observers::MockObserverWriter< Metavariables >::replace_these_threaded_actions
Initial value:
tmpl::list<::observers::ThreadedActions::WriteReductionDataRow>

The documentation for this struct was generated from the following file:
  • tests/Unit/Helpers/IO/Observers/MockWriteReductionDataRow.hpp