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

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. More...

#include <reactor.h>

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

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. A single test registered with the reactor. Must remain at a stable address from the point of registration until asrt_reactor_deinit() is called — the reactor holds a raw pointer to it.

Lifetime of a test execution: the controller sends a TEST_START message, the reactor calls start_f once per tick until start_f returns, then sends the result back. The same asrt_test instance may be executed multiple times across different test runs without re-registration.


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