Classes | Functions
ActionTesting Namespace Reference

Structures used for mocking the parallel components framework in order to test actions. More...

Classes

struct  MockArrayChare
 A mock class for the CMake-generated Parallel::Algorithms::Array More...
 
class  MockDistributedObject
 
class  MockRuntimeSystem
 A class that mocks the infrastructure needed to run actions. It simulates message passing using the inbox infrastructure and handles most of the arguments to the apply and is_ready action methods. More...
 

Functions

template<typename ComponentList , typename MockRuntimeSystem , typename ArrayIndex >
std::vector< size_t > indices_of_components_with_queued_actions (const gsl::not_null< MockRuntimeSystem *> runner, const ArrayIndex &array_index) noexcept
 Returns a vector of all the indices of the Components in the ComponentList that have queued actions.
 
template<typename ComponentList , typename MockRuntimeSystem , typename Generator , typename ArrayIndex >
void invoke_random_queued_action (const gsl::not_null< MockRuntimeSystem *> runner, const gsl::not_null< Generator *> generator, const std::vector< size_t > &index_map, const ArrayIndex &array_index) noexcept
 Invokes the next queued action on a random Component. index_map is the thing returned by indices_of_components_with_queued_actions
 

Detailed Description

Structures used for mocking the parallel components framework in order to test actions.