asrt
Automated System Runtime Testing library
Loading...
Searching...
No Matches
asrt::status_sender Struct Reference

Sender that completes with success if the contained status is ASRT_SUCCESS, and with test_fail otherwise. More...

#include <task.hpp>

Classes

struct  op
 

Public Types

using completion_signatures = ecor::completion_signatures< ecor::set_value_t(), ecor::set_error_t(status) >
 
using sender_concept = ecor::sender_t
 

Public Member Functions

template<ecor::receiver R>
auto connect (R &&r) &&noexcept
 
constexpr operator asrt_status () const
 
constexpr bool operator== (asrt_status st) const
 
 status_sender (asrt_status s)
 

Public Attributes

asrt_status status
 

Detailed Description

Sender that completes with success if the contained status is ASRT_SUCCESS, and with test_fail otherwise.

Can also be used as simple status wrapper - is comparable with status and convertible to status.


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