asrt
Automated System Runtime Testing library
Loading...
Searching...
No Matches
asrt::unit< T > Struct Template Reference

Test adaptor that wraps a synchronous callable T into an asrt_test. More...

#include <reactor.hpp>

Public Member Functions

template<typename... Args>
 unit (Args &&... args)
 
 unit (unit &&)=delete
 
 unit (unit const &)=delete
 

Static Public Member Functions

static asrt_status cb (record *rec)
 

Public Attributes

char const * desc
 Human-readable test name.
 
struct asrt_testnext
 Intrusive linked-list link.
 
void * ptr
 Context pointer forwarded to start_f.
 
asrt_test_callback start_f
 Entry point; called each tick while the test is running.
 
test
 

Detailed Description

template<typename T>
struct asrt::unit< T >

Test adaptor that wraps a synchronous callable T into an asrt_test.

T must provide name() -> char const* and operator()(record&) -> asrt_status. The instance must remain at a stable address for the lifetime of the reactor.


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