Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
|
|
3.0.0 |
#include <ztest_test_deprecated.h>
Data Fields | |
const char * | name |
struct unit_test * | suite |
bool(* | predicate )(const void *state) |
struct ztest_suite_stats | stats |
void *(* | setup )(void) |
void(* | before )(void *data) |
void(* | after )(void *data) |
void(* | teardown )(void *data) |
A single node of test suite. Each node should be added to a single linker section which will allow ztest_run_registered_test_suites() to iterate over the various nodes.
A single node of test suite. Each node should be added to a single linker section which will allow ztest_run_test_suites() to iterate over the various nodes.
void(* ztest_suite_node::after) (void *data) |
Function to run after each test in this suite
data | The test suite's data returned from setup() |
void(* ztest_suite_node::before) (void *data) |
Function to run before each test in this suite
data | The test suite's data returned from setup() |
const char * ztest_suite_node::name |
The name of the test suite.
An optional predicate function to determine if the test should run. If NULL, then the test will only run once on the first attempt.
state | The current state of the test application. |
void *(* ztest_suite_node::setup) (void) |
Setup function to run before running this suite
struct ztest_suite_stats ztest_suite_node::stats |
Stats
struct unit_test* ztest_suite_node::suite |
Pointer to the test suite.
void(* ztest_suite_node::teardown) (void *data) |
Teardown function to run after running this suite
data | The test suite's data returned from setup() |