emlabcpp
modern opinionated embedded C++ library
emlabcpp::testing::test_callable< Callable > Class Template Reference

#include <interface.h>

+ Inheritance diagram for emlabcpp::testing::test_callable< Callable >:
+ Collaboration diagram for emlabcpp::testing::test_callable< Callable >:

Public Member Functions

 test_callable (std::string_view const name, Callable cb)
 
 test_callable (std::string_view const name, auto &rec, Callable cb)
 
 test_callable (test_callable &&) noexcept=default
 
test_callableoperator= (test_callable &&) noexcept=default
 
std::string_view get_name () const override
 
coroutine< void > run (pmr::memory_resource &mem_resource) final
 
- Public Member Functions inherited from emlabcpp::testing::test_interface
 test_interface ()=default
 
 test_interface (test_interface const &)=delete
 
test_interfaceoperator= (test_interface const &)=delete
 
 test_interface (test_interface &&other)=default
 
test_interfaceoperator= (test_interface &&)=default
 
virtual coroutine< void > setup (pmr::memory_resource &)
 
virtual coroutine< void > teardown (pmr::memory_resource &)
 
virtual ~test_interface ()=default
 

Constructor & Destructor Documentation

◆ test_callable() [1/3]

template<valid_test_callable Callable>
emlabcpp::testing::test_callable< Callable >::test_callable ( std::string_view const  name,
Callable  cb 
)
inline

◆ test_callable() [2/3]

template<valid_test_callable Callable>
emlabcpp::testing::test_callable< Callable >::test_callable ( std::string_view const  name,
auto &  rec,
Callable  cb 
)
inline

◆ test_callable() [3/3]

template<valid_test_callable Callable>
emlabcpp::testing::test_callable< Callable >::test_callable ( test_callable< Callable > &&  )
defaultnoexcept

Member Function Documentation

◆ get_name()

template<valid_test_callable Callable>
std::string_view emlabcpp::testing::test_callable< Callable >::get_name ( ) const
inlineoverridevirtual

◆ operator=()

template<valid_test_callable Callable>
test_callable& emlabcpp::testing::test_callable< Callable >::operator= ( test_callable< Callable > &&  )
defaultnoexcept

◆ run()

template<valid_test_callable Callable>
coroutine< void > emlabcpp::testing::test_callable< Callable >::run ( pmr::memory_resource mem_resource)
inlinefinalvirtual

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