Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
ast_test Struct Reference
Collaboration diagram for ast_test:
Collaboration graph
[legend]

Data Fields

ast_test_cb_t * cb
 
ast_test_cleanup_cb_t * cleanup_cb
 
struct ast_cli_argscli
 CLI arguments, if tests being run from the CLI. More...
 
struct {
   struct ast_test *   next
 
entry
 
struct ast_test_info info
 
ast_test_init_cb_t * init_cb
 
enum ast_test_result_state state
 
struct ast_strstatus_str
 Test defined status output from last execution. More...
 
unsigned int time
 

Detailed Description

holds all the information pertaining to a single defined test

Definition at line 65 of file test.c.

Field Documentation

◆ cb

ast_test_cb_t* cb

test callback function

Definition at line 80 of file test.c.

Referenced by ast_test_register_cleanup(), ast_test_register_init(), test_alloc(), test_execute(), and test_remove().

◆ cleanup_cb

ast_test_cleanup_cb_t* cleanup_cb

test cleanup function

Definition at line 82 of file test.c.

Referenced by ast_test_register_cleanup(), and test_execute().

◆ cli

struct ast_cli_args* cli

CLI arguments, if tests being run from the CLI.

If this is set, status updates from the tests will be sent to the CLI in addition to being saved off in status_str.

Definition at line 77 of file test.c.

Referenced by __ast_test_status_update(), ast_test_debug(), and test_execute_multiple().

◆ entry

struct { ... } entry

◆ info

struct ast_test_info info

◆ init_cb

ast_test_init_cb_t* init_cb

test init function

Definition at line 81 of file test.c.

Referenced by ast_test_register_init(), and test_execute().

◆ next

struct ast_test* next

Definition at line 83 of file test.c.

◆ state

◆ status_str

struct ast_str* status_str

Test defined status output from last execution.

Definition at line 70 of file test.c.

Referenced by __ast_test_status_update(), test_alloc(), test_execute(), test_free(), test_txt_entry(), and test_xml_entry().

◆ time

unsigned int time

time in ms test took

Definition at line 79 of file test.c.

Referenced by test_cli_show_results(), test_execute(), test_execute_multiple(), test_txt_entry(), and test_xml_entry().


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