Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Vector tests. More...
#include "asterisk.h"
#include "asterisk/test.h"
#include "asterisk/utils.h"
#include "asterisk/strings.h"
#include "asterisk/module.h"
#include "asterisk/vector.h"
Go to the source code of this file.
Macros | |
#define | STRING_CMP(a, b) |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
AST_TEST_DEFINE (basic_ops) | |
AST_TEST_DEFINE (basic_ops_integer) | |
AST_TEST_DEFINE (callbacks) | |
AST_TEST_DEFINE (locks) | |
static int | cb_match (void *obj, void *arg) |
static int | cb_visits (void *obj, int v) |
static void | cleanup (char *element) |
static void | cleanup_int (int element) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Vector test module" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static int | cleanup_count |
static int | visits |
Definition at line 50 of file test_vector.c.
|
static |
Definition at line 536 of file test_vector.c.
|
static |
Definition at line 536 of file test_vector.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 536 of file test_vector.c.
AST_TEST_DEFINE | ( | basic_ops | ) |
Definition at line 54 of file test_vector.c.
References AST_TEST_NOT_RUN, AST_TEST_PASS, AST_VECTOR, AST_VECTOR_ADD_SORTED, AST_VECTOR_APPEND, AST_VECTOR_FREE, AST_VECTOR_GET, AST_VECTOR_GET_CMP, AST_VECTOR_INIT, AST_VECTOR_INSERT_AT, AST_VECTOR_REMOVE_CMP_ORDERED, AST_VECTOR_REMOVE_ELEM_ORDERED, AST_VECTOR_REMOVE_ORDERED, AST_VECTOR_REMOVE_UNORDERED, AST_VECTOR_REPLACE, AST_VECTOR_RESET, AST_VECTOR_SIZE, cleanup(), cleanup_count, sip_to_pjsip::info(), NULL, STRING_CMP, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | basic_ops_integer | ) |
Definition at line 238 of file test_vector.c.
References AST_TEST_NOT_RUN, AST_TEST_PASS, AST_VECTOR, AST_VECTOR_APPEND, AST_VECTOR_DEFAULT, AST_VECTOR_ELEM_DEFAULT_CMP, AST_VECTOR_FREE, AST_VECTOR_GET, AST_VECTOR_GET_CMP, AST_VECTOR_GET_INDEX, AST_VECTOR_GET_INDEX_NTH, AST_VECTOR_INIT, AST_VECTOR_INSERT_AT, AST_VECTOR_REMOVE_CMP_ORDERED, AST_VECTOR_REMOVE_ELEM_ORDERED, AST_VECTOR_REMOVE_ORDERED, AST_VECTOR_REMOVE_UNORDERED, AST_VECTOR_REPLACE, AST_VECTOR_SIZE, cleanup(), cleanup_count, cleanup_int(), sip_to_pjsip::info(), NULL, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | callbacks | ) |
Definition at line 397 of file test_vector.c.
References AST_TEST_NOT_RUN, AST_TEST_PASS, AST_VECTOR, AST_VECTOR_APPEND, AST_VECTOR_CALLBACK, AST_VECTOR_CALLBACK_MULTIPLE, AST_VECTOR_FREE, AST_VECTOR_GET, AST_VECTOR_INIT, AST_VECTOR_MATCH_ALL, AST_VECTOR_PTR_FREE, AST_VECTOR_SIZE, cb_match(), cb_visits(), cleanup(), sip_to_pjsip::info(), NULL, TEST_EXECUTE, TEST_INIT, typeof(), and visits.
AST_TEST_DEFINE | ( | locks | ) |
Definition at line 467 of file test_vector.c.
References AST_TEST_NOT_RUN, AST_TEST_PASS, AST_VECTOR_RW, AST_VECTOR_RW_FREE, AST_VECTOR_RW_INIT, AST_VECTOR_RW_RDLOCK, AST_VECTOR_RW_RDLOCK_TIMED, AST_VECTOR_RW_RDLOCK_TRY, AST_VECTOR_RW_UNLOCK, AST_VECTOR_RW_WRLOCK, AST_VECTOR_RW_WRLOCK_TIMED, AST_VECTOR_RW_WRLOCK_TRY, cleanup(), sip_to_pjsip::info(), TEST_EXECUTE, and TEST_INIT.
|
static |
Definition at line 385 of file test_vector.c.
References CMP_MATCH, and visits.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 391 of file test_vector.c.
References CMP_STOP, and visits.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 45 of file test_vector.c.
References cleanup_count.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 233 of file test_vector.c.
References cleanup_count.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 526 of file test_vector.c.
References AST_MODULE_LOAD_SUCCESS, AST_TEST_REGISTER, and callbacks.
|
static |
Definition at line 516 of file test_vector.c.
References AST_TEST_UNREGISTER, and callbacks.
|
static |
Definition at line 536 of file test_vector.c.
|
static |
Definition at line 536 of file test_vector.c.
|
static |
Definition at line 43 of file test_vector.c.
Referenced by AST_TEST_DEFINE(), cleanup(), and cleanup_int().
|
static |
Definition at line 383 of file test_vector.c.
Referenced by AST_TEST_DEFINE(), cb_match(), and cb_visits().