emlabcpp
modern opinionated embedded C++ library
emlabcpp::testing::controller Class Reference

#include <controller.h>

Public Member Functions

 controller (protocol::channel_type const channel, pmr::memory_resource &mem_res, controller_interface &iface, controller_transmit_callback send_cb)
 
constexpr protocol::channel_type get_channel () const
 
std::string_view suite_name () const
 
std::string_view suite_date () const
 
bool is_initializing () const
 
bool is_test_running () const
 
pmr::map< test_id, name_buffer > const & get_tests () const
 
outcome on_msg (std::span< std::byte const > const data)
 
outcome on_msg (reactor_controller_variant const &)
 
void start_test (test_id const tid)
 
void tick ()
 

Constructor & Destructor Documentation

◆ controller()

emlabcpp::testing::controller::controller ( protocol::channel_type const  channel,
pmr::memory_resource mem_res,
controller_interface iface,
controller_transmit_callback  send_cb 
)
inline

References EMLABCPP_ASSERT.

Member Function Documentation

◆ get_channel()

constexpr protocol::channel_type emlabcpp::testing::controller::get_channel ( ) const
inlineconstexpr

◆ get_tests()

pmr::map< test_id, name_buffer > const& emlabcpp::testing::controller::get_tests ( ) const
inline

◆ is_initializing()

bool emlabcpp::testing::controller::is_initializing ( ) const
inline

◆ is_test_running()

bool emlabcpp::testing::controller::is_test_running ( ) const
inline

◆ on_msg() [1/2]

outcome emlabcpp::testing::controller::on_msg ( reactor_controller_variant const &  )

◆ on_msg() [2/2]

outcome emlabcpp::testing::controller::on_msg ( std::span< std::byte const > const  data)

◆ start_test()

void emlabcpp::testing::controller::start_test ( test_id const  tid)

◆ suite_date()

std::string_view emlabcpp::testing::controller::suite_date ( ) const
inline

◆ suite_name()

std::string_view emlabcpp::testing::controller::suite_name ( ) const
inline

◆ tick()

void emlabcpp::testing::controller::tick ( )

The documentation for this class was generated from the following file: