SObjectizer 5.8
Loading...
Searching...
No Matches
all.hpp File Reference

Testing related stuff. More...

#include <so_5/all.hpp>
#include <sstream>

Go to the source code of this file.

Classes

struct  so_5::experimental::testing::v1::details::incident_info_t
 A description of an event for testing scenario. More...
 
struct  so_5::experimental::testing::v1::details::trigger_completion_context_t
 Description of context on that a trigger is completed. More...
 
struct  so_5::experimental::testing::v1::details::trigger_activation_context_t
 Description of context on that an attempt to activate a trigger is performing. More...
 
class  so_5::experimental::testing::v1::details::trigger_t
 An implementation of trigger for scenario's step. More...
 
struct  so_5::experimental::testing::v1::details::trigger_source_t< Status >
 A special data class with partial info for a new trigger. More...
 
struct  so_5::experimental::testing::v1::details::store_agent_state_name_t
 A special data object for case of store-state-name completion action. More...
 
struct  so_5::experimental::testing::v1::details::wait_event_handler_completion_t
 A special data object for case when a step should be completed only after returning from the event handler. More...
 
struct  so_5::experimental::testing::v1::details::store_msg_inspection_result_t
 A special data object for case when a message inspector has to be used on an incoming message. More...
 
class  so_5::experimental::testing::v1::details::constraint_t
 An interface of step's constraints. More...
 
class  so_5::experimental::testing::v1::details::not_before_constraint_t
 Implementation of 'not_before' constraint. More...
 
class  so_5::experimental::testing::v1::details::not_after_constraint_t
 Implementation of 'not_after' constraint. More...
 
class  so_5::experimental::testing::v1::details::abstract_scenario_step_t
 An interface of testing scenario step. More...
 
class  so_5::experimental::testing::v1::details::abstract_scenario_step_t::token_t
 Type of token returned from pre-handler-hook. More...
 
class  so_5::experimental::testing::v1::details::trigger_holder_t< Status >
 A helper class for holding unique_ptr to a trigger while trigger is being configured. More...
 
class  so_5::experimental::testing::v1::step_definition_proxy_t
 A special object that should be used for definition of a step of a testing scenario. More...
 
class  so_5::experimental::testing::v1::scenario_result_t
 The result of run of testing scenario. More...
 
class  so_5::experimental::testing::v1::details::scenario_in_progress_accessor_t
 A special objects that allows to call some specific methods of a testing scenario. More...
 
class  so_5::experimental::testing::v1::details::abstract_scenario_t
 An interface of testing scenario. More...
 
class  so_5::experimental::testing::v1::details::abstract_scenario_t::token_t
 Type of token returned by pre-event-handler hook. More...
 
class  so_5::experimental::testing::v1::details::mbox_receives_msg_impl::a_msg_catcher_t< Msg >
 Agent that receives a message/signal from specified mbox. More...
 
class  so_5::experimental::testing::v1::details::mbox_receives_msg_impl::msg_catcher_map_layer_t
 Special layer that holds a map of catcher agents. More...
 
struct  so_5::experimental::testing::v1::details::mbox_receives_msg_impl::msg_catcher_map_layer_t::catcher_info_t
 
struct  so_5::experimental::testing::v1::details::receives_indicator_t< Msg >
 Special indicator to be used in implementation of receives trigger. More...
 
class  so_5::experimental::testing::v1::scenario_proxy_t
 A special wrapper around scenario object. More...
 
class  so_5::experimental::testing::v1::testing_env_t
 A special testing environment that should be used for testing of agents. More...
 

Namespaces

namespace  so_5
 Private part of message limit implementation.
 
namespace  so_5::experimental
 
namespace  so_5::experimental::testing
 
namespace  so_5::experimental::testing::v1
 
namespace  so_5::experimental::testing::v1::details
 
namespace  so_5::experimental::testing::v1::details::mbox_receives_msg_impl
 

Typedefs

using so_5::experimental::testing::v1::details::trigger_unique_ptr_t = std::unique_ptr< trigger_t >
 An alias for unique_ptr of trigger.
 
using so_5::experimental::testing::v1::details::trigger_container_t = std::vector< trigger_unique_ptr_t >
 An alias for type of tigger's container.
 
using so_5::experimental::testing::v1::details::constraint_unique_ptr_t = std::unique_ptr< constraint_t >
 An alias for unique_ptr of constraint.
 
using so_5::experimental::testing::v1::details::constraint_container_t = std::vector< constraint_unique_ptr_t >
 An alias for container of constraints.
 
using so_5::experimental::testing::v1::details::preactivate_action_t = std::function< void() >
 An alias for type of step's preactivation action.
 
using so_5::experimental::testing::v1::details::step_unique_ptr_t = std::unique_ptr< abstract_scenario_step_t >
 An alias for unique_ptr of scenario-step.
 

Enumerations

enum class  so_5::experimental::testing::v1::details::incident_status_t { so_5::experimental::testing::v1::details::handled , so_5::experimental::testing::v1::details::ignored }
 What happened with source of an event. More...
 
enum class  so_5::experimental::testing::v1::scenario_status_t { so_5::experimental::testing::v1::not_started , so_5::experimental::testing::v1::in_progress , so_5::experimental::testing::v1::completed , so_5::experimental::testing::v1::timed_out }
 Status of testing scenario. More...
 

Functions

scenario_result_t so_5::experimental::testing::v1::completed ()
 Create a value that means that scenario completed successfuly.
 
template<typename Msg_Type >
details::trigger_source_t< details::incident_status_t::handledso_5::experimental::testing::v1::reacts_to ()
 Define a trigger that activates when an agent receives and handles a message from the direct mbox.
 
template<typename Msg_Type >
details::trigger_source_t< details::incident_status_t::handledso_5::experimental::testing::v1::reacts_to (const so_5::mbox_t &mbox)
 Define a trigger that activates when an agent receives and handles a message from the specific mbox.
 
details::store_agent_state_name_t so_5::experimental::testing::v1::store_state_name (std::string tag)
 Create a special marker for a trigger for storing agent's state name inside scenario.
 
template<typename Lambda >
details::store_msg_inspection_result_t so_5::experimental::testing::v1::inspect_msg (std::string tag, Lambda &&inspector)
 Create a special marker for a trigger for inspecting an incoming message and storing the inspection result inside the scenario.
 
details::wait_event_handler_completion_t so_5::experimental::testing::v1::wait_event_handler_completion ()
 Create a special marker for a trigger that requires waiting for completion of an event handler.
 
template<typename Msg_Type >
details::trigger_source_t< details::incident_status_t::ignoredso_5::experimental::testing::v1::ignores ()
 Define a trigger that activates when an agent rejects a message from the direct mbox.
 
template<typename Msg_Type >
details::trigger_source_t< details::incident_status_t::ignoredso_5::experimental::testing::v1::ignores (const so_5::mbox_t &mbox)
 Define a trigger that activates when an agent rejects a message from the direct mbox.
 
details::constraint_unique_ptr_t so_5::experimental::testing::v1::not_before (std::chrono::steady_clock::duration pause)
 Create a constraint not-before.
 
details::constraint_unique_ptr_t so_5::experimental::testing::v1::not_after (std::chrono::steady_clock::duration pause)
 Create a constraint not-after.
 
template<incident_status_t Status>
trigger_holder_t< Status > so_5::experimental::testing::v1::details::operator& (const so_5::agent_t &agent, const trigger_source_t< Status > &src)
 A helper operator to create a trigger for the specified agent.
 
trigger_holder_t< incident_status_t::handledso_5::experimental::testing::v1::details::operator& (trigger_holder_t< incident_status_t::handled > &&old_holder, store_agent_state_name_t data_to_store)
 A helper operator to create a tigger that stores the name of the current agent's state.
 
template<incident_status_t Status>
trigger_holder_t< Status > so_5::experimental::testing::v1::details::operator& (trigger_holder_t< Status > &&old_holder, store_msg_inspection_result_t inspection_info)
 A helper operator to create a tigger that inspects the incoming message and stores the result into the scenario.
 
trigger_holder_t< incident_status_t::handledso_5::experimental::testing::v1::details::operator& (trigger_holder_t< incident_status_t::handled > &&old_holder, wait_event_handler_completion_t)
 A helper operator to create a tigger that requires the completion of an event handler.
 
template<typename Msg >
trigger_holder_t< incident_status_t::handledso_5::experimental::testing::v1::details::operator& (const mbox_t &from, receives_indicator_t< Msg >)
 A helper operator to create a tigger that receives a message/signal from specified mbox.
 
template<typename Msg >
details::receives_indicator_t< Msg > so_5::experimental::testing::v1::receives ()
 Helper function to be used for a trigger that receives a message/singal from a mbox.
 

Detailed Description

Testing related stuff.

Since
v.5.5.24

Definition in file experimental/testing/v1/all.hpp.