SObjectizer  5.5
Classes | Namespaces | Typedefs | Enumerations | Functions
experimental/testing/v1/all.hpp File Reference

Testing related stuff. More...

#include <so_5/all.hpp>
#include <so_5/h/stdcpp.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...
 
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...
 
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::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

 so_5
 Public part of message limit implementation.
 
 so_5::experimental
 
 so_5::experimental::testing
 
 so_5::experimental::testing::v1
 
 so_5::experimental::testing::v1::details
 

Typedefs

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

Enumerations

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

Functions

SO_5_NODISCARD scenario_result_t so_5::experimental::testing::v1::completed ()
 Create a value that means that scenario completed successfuly. More...
 
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. More...
 
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. More...
 
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. More...
 
template<typename Msg_Type >
details::trigger_source_t< details::incident_status_t::ignored > so_5::experimental::testing::v1::ignores ()
 Define a trigger that activates when an agent rejects a message from the direct mbox. More...
 
template<typename Msg_Type >
details::trigger_source_t< details::incident_status_t::ignored > so_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. More...
 
details::constraint_unique_ptr_t so_5::experimental::testing::v1::not_before (std::chrono::steady_clock::duration pause)
 Create a constraint not-before. More...
 
details::constraint_unique_ptr_t so_5::experimental::testing::v1::not_after (std::chrono::steady_clock::duration pause)
 Create a constraint not-after. More...
 
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. More...
 
trigger_holder_t< incident_status_t::handled > so_5::experimental::testing::v1::details::operator & (trigger_holder_t< incident_status_t::handled > &&old_holder, store_agent_state_name_t data)
 A helper operator to create a tigger that stores the name of the current agent's state. More...
 

Detailed Description

Testing related stuff.

Since
v.5.5.24