Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
ast_test_info Struct Reference

Contains all the initialization information required to store a new test definition. More...

#include <test.h>

Data Fields

const char * category
 test category More...
 
const char * description
 More detailed description of test. More...
 
unsigned int explicit_only
 Only run if explicitly named. More...
 
const char * name
 name of test, unique to category More...
 
const char * summary
 Short summary of test. More...
 

Detailed Description

Contains all the initialization information required to store a new test definition.

Definition at line 221 of file test.h.

Field Documentation

◆ category

const char* category

test category

Tests are categorized in a directory tree style hierarchy. It is expected that this string have both a leading and trailing forward slash ('/').

Definition at line 231 of file test.h.

Referenced by AST_TEST_DEFINE(), ast_test_register_cleanup(), ast_test_register_init(), complete_test_category(), complete_test_name(), test_alloc(), test_cli_show_registered(), test_cli_show_results(), test_execute_multiple(), test_generate_results(), test_insert(), test_txt_entry(), and test_xml_entry().

◆ description

const char* description

More detailed description of test.

Note
The description must not end with a newline.

Definition at line 243 of file test.h.

Referenced by AST_TEST_DEFINE(), Parameter::load(), Api::load(), Property::load(), Model::load(), ResourceApi::load(), test_alloc(), and test_txt_entry().

◆ explicit_only

unsigned int explicit_only

Only run if explicitly named.

Run this test only if it's explicitly named on the command line. Do NOT run it as part of an execute category or execute all command.

Definition at line 251 of file test.h.

Referenced by test_execute_multiple().

◆ name

const char* name

◆ summary

const char* summary

Short summary of test.

Note
The summary must not end with a newline.

Definition at line 237 of file test.h.

Referenced by AST_TEST_DEFINE(), test_alloc(), test_cli_show_registered(), and test_txt_entry().


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