|
using | name_buffer = string_buffer< 32 > |
|
using | key_type_buffer = string_buffer< 32 > |
|
using | node_id = uint32_t |
|
using | child_count = uint32_t |
|
using | child_id = uint32_t |
|
using | node_type_enum = contiguous_tree_type |
|
using | string_buffer = string_buffer< 128 > |
|
using | key_type = key_type_buffer |
|
using | value_type = std::variant< int64_t, float, bool, string_buffer > |
|
using | run_id = uint32_t |
|
using | test_id = uint16_t |
|
using | data_tree = contiguous_tree< key_type, value_type > |
|
using | data_array_handle = typename data_tree::array_handle |
|
using | data_object_handle = typename data_tree::object_handle |
|
using | data_const_array_handle = typename data_tree::const_array_handle |
|
using | data_const_object_handle = typename data_tree::const_object_handle |
|
using | collect_key_type = key_type_buffer |
|
using | collect_value_type = std::variant< value_type, contiguous_container_type > |
|
using | collect_server_client_group = std::variant< collect_reply, tree_error_reply > |
|
using | collect_server_client_message = typename protocol::handler< collect_server_client_group >::message_type |
|
using | collect_client_server_message = typename protocol::handler< collect_request >::message_type |
|
using | collect_reply_callback = static_function< void(collect_server_client_group const &), 32 > |
|
using | collect_client_transmit_callback = static_function< result(protocol::channel_type, collect_client_server_message const &), 32 > |
|
using | collect_server_transmit_callback = static_function< result(protocol::channel_type, collect_server_client_message const &), 32 > |
|
using | error_variant = std::variant< reactor_protocol_error, controller_protocol_error, internal_reactor_error, controller_internal_error > |
|
using | test_ll_node = linked_list_node_base< test_interface > |
|
template<typename T > |
using | test_unit = linked_list_node< T, test_interface > |
|
using | empty_node = test_unit< empty_node_impl > |
|
template<valid_test_callable Callable> |
using | test_linked_callable = test_unit< test_callable< Callable > > |
|
using | params_client_server_group = protocol::tag_group< param_value_request, param_child_request, param_child_count_request, param_key_request, param_type_request, param_value_key_request, param_error > |
|
using | params_client_server_variant = typename protocol::traits_for< params_client_server_group >::value_type |
|
using | params_client_server_message = typename protocol::handler< params_client_server_group >::message_type |
|
using | params_server_client_group = protocol::tag_group< param_value_reply, param_child_reply, param_child_count_reply, param_key_reply, param_type_reply, param_value_key_reply, tree_error_reply > |
|
using | params_server_client_variant = typename protocol::traits_for< params_server_client_group >::value_type |
|
using | params_server_client_message = typename protocol::handler< params_server_client_group >::message_type |
|
using | params_reply_callback = static_function< void(params_server_client_variant const &), 32 > |
|
using | params_client_transmit_callback = static_function< result(protocol::channel_type, params_client_server_message const &), 32 > |
|
using | params_server_transmit_callback = static_function< result(protocol::channel_type, params_server_client_message const &), 32 > |
|
template<typename T > |
using | param_value_awaiter = params_awaiter< param_value_processor< T > > |
|
using | param_variant_awaiter = params_awaiter< param_variant_processor > |
|
template<typename T > |
using | param_value_key_awaiter = params_awaiter< param_value_key_processor< T > > |
|
using | param_type_awaiter = params_awaiter< param_type_processor > |
|
using | param_child_awaiter = params_awaiter< param_child_processor > |
|
using | param_child_count_awaiter = params_awaiter< param_child_count_processor > |
|
using | param_key_awaiter = params_awaiter< param_key_processor > |
|
using | controller_reactor_group = protocol::tag_group< get_property< msgid::SUITE_NAME >, get_property< msgid::SUITE_DATE >, get_property< msgid::COUNT >, get_test_name_request, exec_request > |
|
using | controller_reactor_variant = typename protocol::traits_for< controller_reactor_group >::value_type |
|
using | controller_reactor_message = typename protocol::handler< controller_reactor_group >::message_type |
|
using | reactor_error_variant = std::variant< error< TEST_IS_RUNING_E >, error< TEST_NOT_FOUND_E >, error< BAD_TEST_ID_E >, error< UNDESIRED_MSG_E >, no_response_error, wrong_type_error, tree_error_reply, error< WRONG_MESSAGE_E >, input_message_protocol_error > |
|
using | reactor_controller_group = protocol::tag_group< boot, get_count_reply, get_test_name_reply, test_finished, get_suite_name_reply, get_suite_date_reply, reactor_internal_error_report > |
|
using | reactor_controller_variant = typename protocol::traits_for< reactor_controller_group >::value_type |
|
using | reactor_controller_message = typename protocol::handler< reactor_controller_group >::message_type |
|
using | reactor_transmit_callback = static_function< result(protocol::channel_type, reactor_controller_message const &), 32 > |
|
using | controller_transmit_callback = static_function< result(protocol::channel_type, controller_reactor_message const &), 32 > |
|
using | packet_payload = protocol::multiplexer_payload< 256 > |
|
using | packet = protocol::packet< packet_def, packet_payload > |
|
using | endpoint = protocol::multiplexed_endpoint< packet > |
|
using | message = typename packet::message_type |
|
|
constexpr bool | is_problematic (test_status stat) |
|
status_awaiter | expect (collector &c, bool expr, std::source_location loc=std::source_location::current()) |
|
template<typename T > |
requires(N<=string_buffer::capacity) struct value_type_converter< emlabcpp requires(alternative_of< T, value_type >) struct value_type_converter< T > | requires (!std::same_as< T, int64_t > &&std::is_integral_v< T > &&!std::same_as< T, bool >) struct value_type_converter< T > |
|
status_awaiter | expect (bool expr) |
|
status_awaiter | fail () |
|
status_awaiter | skip () |
|
template<valid_test_callable Callable> |
| test_callable (std::string_view const name, Callable cb) -> test_callable< Callable > |
|
template<typename Unit , typename Reactor , typename... Args> |
result | construct_test_unit (pmr::memory_resource &mem_res, Reactor &reactor, Args &&... args) |
|
template<typename Callable , typename Reactor > |
result | construct_test_callable (pmr::memory_resource &mem_res, Reactor &reactor, std::string_view name, Callable callable) |
|
template<typename Callable , typename Reactor > |
void | construct_test_callable (pmr::memory_resource &mem_res, Reactor &reactor, std::string_view name, Callable callable, result &res) |
|
MIT License.
Copyright (c) 2025 Jan Veverak Koniarik
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.