|
asrt
Automated System Runtime Testing library
|
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_test * | next |
| 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. | |
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.