|
SObjectizer
5.8
|
Namespaces | |
| namespace | details |
| namespace | impl |
Classes | |
| class | scenario_proxy_t |
| A special wrapper around scenario object. More... | |
| class | scenario_result_t |
| The result of run of testing scenario. More... | |
| class | step_definition_proxy_t |
| A special object that should be used for definition of a step of a testing scenario. More... | |
| class | testing_env_t |
| A special testing environment that should be used for testing of agents. More... | |
Enumerations | |
| enum class | scenario_status_t { not_started , in_progress , completed , timed_out } |
| Status of testing scenario. More... | |
Functions | |
| scenario_result_t | completed () |
| Create a value that means that scenario completed successfuly. | |
| template<typename Msg_Type > | |
| details::trigger_source_t< details::incident_status_t::handled > | 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::handled > | 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 | 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 | 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 | 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::ignored > | 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::ignored > | 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 | not_before (std::chrono::steady_clock::duration pause) |
| Create a constraint not-before. | |
| details::constraint_unique_ptr_t | not_after (std::chrono::steady_clock::duration pause) |
| Create a constraint not-after. | |
| template<typename Msg > | |
| details::receives_indicator_t< Msg > | receives () |
| Helper function to be used for a trigger that receives a message/singal from a mbox. | |
|
strong |
Status of testing scenario.
This enumeration is used by testing scenario itself and by scenario_result_t type.
Definition at line 1142 of file experimental/testing/v1/all.hpp.
|
inlinenodiscard |
Create a value that means that scenario completed successfuly.
Usage example:
Definition at line 1293 of file experimental/testing/v1/all.hpp.
|
nodiscard |
Define a trigger that activates when an agent rejects a message from the direct mbox.
Usage example:
Definition at line 1502 of file experimental/testing/v1/all.hpp.
|
nodiscard |
Define a trigger that activates when an agent rejects a message from the direct mbox.
Usage example:
Definition at line 1531 of file experimental/testing/v1/all.hpp.
|
nodiscard |
Create a special marker for a trigger for inspecting an incoming message and storing the inspection result inside the scenario.
Usage example:
The inspect_msg() can be used for mutable messages too:
The inspect_msg() can't be used with signals, because signals have no actual data.
| tag | Tag to be used for indentification of the inspection result. |
| inspector | Inspection functor. |
Definition at line 1421 of file experimental/testing/v1/all.hpp.
|
inlinenodiscard |
Create a constraint not-after.
That constraint is fulfilled if an event is happened before a specified pause. Time is calculated from moment of preactivation of a scenario's step.
Usage example:
In that case step won't be activated if agent receives a message after, for example, 55ms.
Definition at line 1595 of file experimental/testing/v1/all.hpp.
|
inlinenodiscard |
Create a constraint not-before.
That constraint is fulfilled if an event is happened after a specified pause. Time is calculated from moment of preactivation of a scenario's step.
Usage example:
In that case step won't be activated if agent receives a message after, for example, 15ms.
Definition at line 1564 of file experimental/testing/v1/all.hpp.
|
nodiscard |
Define a trigger that activates when an agent receives and handles a message from the direct mbox.
Usage example:
Definition at line 1312 of file experimental/testing/v1/all.hpp.
|
nodiscard |
Define a trigger that activates when an agent receives and handles a message from the specific mbox.
Usage example:
Definition at line 1334 of file experimental/testing/v1/all.hpp.
|
nodiscard |
Helper function to be used for a trigger that receives a message/singal from a mbox.
Usage example:
Since v.5.8.4 this helper can be used for the same mbox and the same message type several times in one scenario (but in different scenario steps):
Definition at line 2237 of file experimental/testing/v1/all.hpp.
|
inlinenodiscard |
Create a special marker for a trigger for storing agent's state name inside scenario.
Usage example:
Definition at line 1363 of file experimental/testing/v1/all.hpp.
|
inlinenodiscard |
Create a special marker for a trigger that requires waiting for completion of an event handler.
Usage example:
Definition at line 1473 of file experimental/testing/v1/all.hpp.