|
asrt
Automated System Runtime Testing library
|
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_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. | |
| T | test |
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.