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

Coroutine test adaptor that wraps a definition type T into an asrt_test driven by an ecor coroutine. More...

#include <task_unit.hpp>

Classes

struct  recv
 

Public Member Functions

 task_unit (T def)
 

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.
 

Detailed Description

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

Coroutine test adaptor that wraps a definition type T into an asrt_test driven by an ecor coroutine.

T must provide: char const* name — test name task<void> exec() — coroutine body; co_await any asrt sender inside it The coroutine runs incrementally: the reactor calls cb() on every tick until exec() completes.


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