Zephyr Project API
3.1.0
A Scalable Open Source RTOS
|
#include <ztest_test_deprecated.h>
Data Fields | |
const char * | name |
struct unit_test * | suite |
bool(* | predicate )(const void *state) |
struct ztest_suite_stats * | stats |
const char *const | name |
void *(*const | setup )(void) |
void(*const | before )(void *data) |
void(*const | after )(void *data) |
void(*const | teardown )(void *data) |
bool(*const | predicate )(const void *state) |
struct ztest_suite_stats *const | stats |
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(*const 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(*const 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.
const char* const 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. |
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 *(*const ztest_suite_node::setup) (void) |
Setup function to run before running this suite
struct ztest_suite_stats* ztest_suite_node::stats |
Stats
struct ztest_suite_stats* const ztest_suite_node::stats |
Stats
struct unit_test* ztest_suite_node::suite |
Pointer to the test suite.
void(*const ztest_suite_node::teardown) (void *data) |
Teardown function to run after running this suite
data | The test suite's data returned from setup() |