Asterisk - The Open Source Telephony Project
18.5.0
|
Sorcery Unit Tests. More...
#include "asterisk.h"
#include "asterisk/test.h"
#include "asterisk/module.h"
#include "asterisk/astobj2.h"
#include "asterisk/pbx.h"
#include "asterisk/sorcery.h"
#include "asterisk/logger.h"
#include "asterisk/json.h"
Go to the source code of this file.
Data Structures | |
struct | sorcery_test_caching |
Test structure for caching. More... | |
struct | sorcery_test_observer |
Test structure for observer. More... | |
struct | test_sorcery_object |
Dummy sorcery object. More... | |
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static struct ast_sorcery * | alloc_and_initialize_sorcery (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
AST_TEST_DEFINE (wizard_registration) | |
AST_TEST_DEFINE (sorcery_open) | |
AST_TEST_DEFINE (apply_default) | |
AST_TEST_DEFINE (apply_config) | |
AST_TEST_DEFINE (object_register) | |
AST_TEST_DEFINE (object_register_without_mapping) | |
AST_TEST_DEFINE (object_field_register) | |
AST_TEST_DEFINE (object_fields_register) | |
AST_TEST_DEFINE (object_alloc_with_id) | |
AST_TEST_DEFINE (object_alloc_without_id) | |
AST_TEST_DEFINE (object_copy) | |
AST_TEST_DEFINE (object_copy_native) | |
AST_TEST_DEFINE (object_diff) | |
AST_TEST_DEFINE (object_diff_native) | |
AST_TEST_DEFINE (objectset_create) | |
AST_TEST_DEFINE (objectset_json_create) | |
AST_TEST_DEFINE (objectset_create_regex) | |
AST_TEST_DEFINE (objectset_apply) | |
AST_TEST_DEFINE (objectset_apply_handler) | |
AST_TEST_DEFINE (objectset_apply_invalid) | |
AST_TEST_DEFINE (objectset_transform) | |
AST_TEST_DEFINE (objectset_apply_fields) | |
AST_TEST_DEFINE (extended_fields) | |
AST_TEST_DEFINE (changeset_create) | |
AST_TEST_DEFINE (changeset_create_unchanged) | |
AST_TEST_DEFINE (object_create) | |
AST_TEST_DEFINE (object_retrieve_id) | |
AST_TEST_DEFINE (object_retrieve_field) | |
AST_TEST_DEFINE (object_retrieve_multiple_all) | |
AST_TEST_DEFINE (object_retrieve_multiple_field) | |
AST_TEST_DEFINE (object_retrieve_regex) | |
AST_TEST_DEFINE (object_update) | |
AST_TEST_DEFINE (object_update_uncreated) | |
AST_TEST_DEFINE (object_delete) | |
AST_TEST_DEFINE (object_delete_uncreated) | |
AST_TEST_DEFINE (object_is_stale) | |
AST_TEST_DEFINE (caching_wizard_behavior) | |
AST_TEST_DEFINE (object_type_observer) | |
AST_TEST_DEFINE (configuration_file_wizard) | |
AST_TEST_DEFINE (configuration_file_wizard_with_file_integrity) | |
AST_TEST_DEFINE (configuration_file_wizard_with_criteria) | |
AST_TEST_DEFINE (configuration_file_wizard_retrieve_field) | |
AST_TEST_DEFINE (configuration_file_wizard_retrieve_multiple) | |
AST_TEST_DEFINE (configuration_file_wizard_retrieve_multiple_all) | |
AST_TEST_DEFINE (dialplan_function) | |
AST_TEST_DEFINE (object_field_registered) | |
AST_TEST_DEFINE (global_observation) | |
AST_TEST_DEFINE (instance_observation) | |
AST_TEST_DEFINE (wizard_observation) | |
AST_TEST_DEFINE (wizard_apply_and_insert) | |
AST_TEST_DEFINE (wizard_read_only) | |
static void | instance_loaded_observer (const char *name, const struct ast_sorcery *sorcery, int reloaded) |
static void | instance_observer (const char *name, struct ast_sorcery *sorcery) |
static void | instance_reloaded_observer (const char *name, const struct ast_sorcery *sorcery, int reloaded) |
static int | jack_handler (const struct aco_option *opt, struct ast_variable *var, void *obj) |
static int | jack_str (const void *obj, const intptr_t *args, char **buf) |
static int | jim_handler (const struct aco_option *opt, struct ast_variable *var, void *obj) |
static int | jim_vl (const void *obj, struct ast_variable **fields) |
static int | load_module (void) |
static void | object_type_loaded_observer (const char *name, const struct ast_sorcery *sorcery, const char *object_type, int reloaded) |
static void | object_type_registered_observer (const char *name, struct ast_sorcery *sorcery, const char *object_type) |
static void | object_type_reloaded_observer (const char *name, const struct ast_sorcery *sorcery, const char *object_type, int reloaded) |
static void | sorcery_observer_created (const void *object) |
static void | sorcery_observer_deleted (const void *object) |
static void | sorcery_observer_loaded (const char *object_type) |
static void | sorcery_observer_updated (const void *object) |
static void | sorcery_test_close (void *data) |
static int | sorcery_test_create (const struct ast_sorcery *sorcery, void *data, void *object) |
static int | sorcery_test_delete (const struct ast_sorcery *sorcery, void *data, void *object) |
static int | sorcery_test_is_stale (const struct ast_sorcery *sorcery, void *data, void *object) |
static void | sorcery_test_load (void *data, const struct ast_sorcery *sorcery, const char *type) |
static void * | sorcery_test_open (const char *data) |
static void * | sorcery_test_retrieve_id (const struct ast_sorcery *sorcery, void *data, const char *type, const char *id) |
static int | sorcery_test_update (const struct ast_sorcery *sorcery, void *data, void *object) |
static int | test_apply_handler (const struct ast_sorcery *sorcery, void *obj) |
Simple apply handler which sets global scope integer to 1 if called. More... | |
static int | test_sorcery_copy (const void *src, void *dst) |
Internal function which copies pre-defined data into an object, natively. More... | |
static int | test_sorcery_diff (const void *original, const void *modified, struct ast_variable **changes) |
Internal function which creates a pre-defined diff natively. More... | |
static void * | test_sorcery_object_alloc (const char *id) |
Internal function to allocate a test object. More... | |
static void | test_sorcery_object_destroy (void *obj) |
Internal function to destroy a test object. More... | |
static int | test_sorcery_regex_fields (const void *obj, struct ast_variable **fields) |
Internal function which creates some ast_variable structures. More... | |
static int | test_sorcery_regex_handler (const struct aco_option *opt, struct ast_variable *var, void *obj) |
Internal function which sets some values. More... | |
static struct ast_variable * | test_sorcery_transform (struct ast_variable *set) |
Internal function for object set transformation. More... | |
static int | unload_module (void) |
static void | wizard_loaded_observer (const char *name, const struct ast_sorcery_wizard *wizard, const char *object_type, int reloaded) |
static void | wizard_mapped_observer (const char *name, struct ast_sorcery *sorcery, const char *object_type, struct ast_sorcery_wizard *wizard, const char *wizard_args, void *wizard_data) |
static void | wizard_observer (const char *name, const struct ast_sorcery_wizard *wizard) |
static void | wizard_reloaded_observer (const char *name, const struct ast_sorcery_wizard *wizard, const char *object_type, int reloaded) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Sorcery 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 int | apply_handler_called |
Global scope apply handler integer to make sure it executed. More... | |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct sorcery_test_caching | cache = { 0, } |
Global scope caching structure for testing. More... | |
static int | event_observed |
static struct sorcery_test_observer | observer |
Global scope observer structure for testing. More... | |
static const struct ast_sorcery_observer | test_observer |
Test sorcery observer implementation. More... | |
static struct ast_sorcery_wizard | test_read_only_wizard |
static struct ast_sorcery_wizard | test_wizard |
Dummy sorcery wizards, not actually used so we only populate the name and nothing else. More... | |
static struct ast_sorcery_wizard | test_wizard2 |
static void * | wizard2_data |
Sorcery Unit Tests.
Definition in file test_sorcery.c.
|
static |
Definition at line 3745 of file test_sorcery.c.
|
static |
Definition at line 3745 of file test_sorcery.c.
|
static |
Definition at line 332 of file test_sorcery.c.
References ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_object_field_register_custom_nodoc, ast_sorcery_object_field_register_nodoc, ast_sorcery_open, ast_sorcery_unref, test_sorcery_object::bob, FLDSET, jack_handler(), jack_str(), jim_handler(), jim_vl(), test_sorcery_object::joe, NULL, OPT_UINT_T, sorcery, and test_sorcery_object_alloc().
Referenced by AST_TEST_DEFINE().
struct ast_module* AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 3745 of file test_sorcery.c.
AST_TEST_DEFINE | ( | wizard_registration | ) |
Definition at line 354 of file test_sorcery.c.
References ast_sorcery_wizard_register, ast_sorcery_wizard_unregister(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | sorcery_open | ) |
Definition at line 391 of file test_sorcery.c.
References ao2_ref, AST_MODULE, ast_sorcery_open, ast_sorcery_retrieve_by_module_name(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | apply_default | ) |
Definition at line 465 of file test_sorcery.c.
References ast_sorcery_apply_default, AST_SORCERY_APPLY_DEFAULT_UNNECESSARY, AST_SORCERY_APPLY_FAIL, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_open, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | apply_config | ) |
Definition at line 504 of file test_sorcery.c.
References ast_category_get(), ast_config_destroy(), ast_config_load2(), ast_sorcery_apply_config, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_open, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, config, CONFIG_FLAG_NOCACHE, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_register | ) |
Definition at line 548 of file test_sorcery.c.
References ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_open, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | object_register_without_mapping | ) |
Definition at line 587 of file test_sorcery.c.
References ast_sorcery_internal_object_register, ast_sorcery_open, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | object_field_register | ) |
Definition at line 616 of file test_sorcery.c.
References ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_object_field_register_nodoc, ast_sorcery_open, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, test_sorcery_object::bob, FLDSET, sip_to_pjsip::info(), NULL, OPT_UINT_T, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | object_fields_register | ) |
Definition at line 665 of file test_sorcery.c.
References ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_object_fields_register(), ast_sorcery_open, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, test_sorcery_object_alloc(), test_sorcery_regex_fields(), and test_sorcery_regex_handler().
AST_TEST_DEFINE | ( | object_alloc_with_id | ) |
Definition at line 714 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_object_get_id(), ast_sorcery_object_get_type(), ast_sorcery_unref, ast_strlen_zero, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_alloc_without_id | ) |
Definition at line 760 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_object_get_id(), ast_sorcery_unref, ast_strlen_zero, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_copy | ) |
Definition at line 795 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_copy(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, copy(), sip_to_pjsip::info(), jim_handler(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_copy_native | ) |
Definition at line 862 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_copy(), ast_sorcery_object_set_copy_handler(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, copy(), sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_copy().
AST_TEST_DEFINE | ( | object_diff | ) |
Definition at line 919 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_diff(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), sip_to_pjsip::info(), jim_handler(), ast_variable::name, ast_variable::next, NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and ast_variable::value.
AST_TEST_DEFINE | ( | object_diff_native | ) |
Definition at line 1003 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_diff(), ast_sorcery_object_set_diff_handler(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variables_destroy(), sip_to_pjsip::info(), ast_variable::name, ast_variable::next, NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, test_sorcery_diff(), and ast_variable::value.
AST_TEST_DEFINE | ( | objectset_create | ) |
Definition at line 1069 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_objectset_create, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variables_destroy(), sip_to_pjsip::info(), ast_variable::name, ast_variable::next, NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and ast_variable::value.
AST_TEST_DEFINE | ( | objectset_json_create | ) |
Definition at line 1134 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_json_object_iter(), ast_json_object_iter_key(), ast_json_object_iter_next(), ast_json_object_iter_value(), ast_json_string_get(), ast_json_unref(), ast_sorcery_alloc(), ast_sorcery_objectset_json_create(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and value.
AST_TEST_DEFINE | ( | objectset_create_regex | ) |
Definition at line 1201 of file test_sorcery.c.
References ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_object_fields_register(), ast_sorcery_objectset_create, ast_sorcery_open, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variables_destroy(), sip_to_pjsip::info(), ast_variable::name, ast_variable::next, NULL, RAII_VAR, sorcery, test_apply_handler(), TEST_EXECUTE, TEST_INIT, test_sorcery_object_alloc(), test_sorcery_regex_fields(), test_sorcery_regex_handler(), and ast_variable::value.
AST_TEST_DEFINE | ( | objectset_apply | ) |
Definition at line 1259 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_objectset_apply(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | objectset_apply_handler | ) |
Definition at line 1302 of file test_sorcery.c.
References ao2_cleanup, apply_handler_called, ast_sorcery_alloc(), ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_object_field_register_nodoc, ast_sorcery_objectset_apply(), ast_sorcery_open, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), test_sorcery_object::bob, FLDSET, sip_to_pjsip::info(), test_sorcery_object::joe, NULL, OPT_UINT_T, RAII_VAR, sorcery, test_apply_handler(), TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | objectset_apply_invalid | ) |
Definition at line 1356 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_objectset_apply(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | objectset_transform | ) |
Definition at line 1398 of file test_sorcery.c.
References ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_object_field_register_nodoc, ast_sorcery_objectset_apply(), ast_sorcery_objectset_create, ast_sorcery_open, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variables_destroy(), test_sorcery_object::bob, FLDSET, sip_to_pjsip::info(), test_sorcery_object::joe, NULL, OPT_UINT_T, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, test_sorcery_object_alloc(), and test_sorcery_transform().
AST_TEST_DEFINE | ( | objectset_apply_fields | ) |
Definition at line 1463 of file test_sorcery.c.
References ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_object_fields_register(), ast_sorcery_objectset_apply(), ast_sorcery_open, ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, test_apply_handler(), TEST_EXECUTE, TEST_INIT, test_sorcery_object_alloc(), test_sorcery_regex_fields(), and test_sorcery_regex_handler().
AST_TEST_DEFINE | ( | extended_fields | ) |
Definition at line 1514 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_object_get_extended(), ast_sorcery_object_set_extended(), ast_sorcery_objectset_apply(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and value.
AST_TEST_DEFINE | ( | changeset_create | ) |
Definition at line 1579 of file test_sorcery.c.
References ast_sorcery_changeset_create(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), sip_to_pjsip::info(), ast_variable::name, ast_variable::next, NULL, RAII_VAR, TEST_EXECUTE, TEST_INIT, tmp(), and ast_variable::value.
AST_TEST_DEFINE | ( | changeset_create_unchanged | ) |
Definition at line 1650 of file test_sorcery.c.
References ast_sorcery_changeset_create(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), sip_to_pjsip::info(), ast_variable::next, NULL, RAII_VAR, TEST_EXECUTE, TEST_INIT, and tmp().
AST_TEST_DEFINE | ( | object_create | ) |
Definition at line 1716 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_create(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_retrieve_id | ) |
Definition at line 1751 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_create(), ast_sorcery_object_get_id(), ast_sorcery_retrieve_by_id(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_retrieve_field | ) |
Definition at line 1808 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, AST_RETRIEVE_FLAG_DEFAULT, ast_sorcery_alloc(), ast_sorcery_create(), ast_sorcery_retrieve_by_fields(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_retrieve_multiple_all | ) |
Definition at line 1871 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ao2_container_count(), AST_RETRIEVE_FLAG_ALL, AST_RETRIEVE_FLAG_MULTIPLE, ast_sorcery_alloc(), ast_sorcery_create(), ast_sorcery_retrieve_by_fields(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_retrieve_multiple_field | ) |
Definition at line 1927 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ao2_container_count(), AST_RETRIEVE_FLAG_MULTIPLE, ast_sorcery_alloc(), ast_sorcery_create(), ast_sorcery_retrieve_by_fields(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_retrieve_regex | ) |
Definition at line 1993 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ao2_container_count(), ast_sorcery_alloc(), ast_sorcery_create(), ast_sorcery_retrieve_by_regex(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_update | ) |
Definition at line 2061 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_copy(), ast_sorcery_create(), ast_sorcery_retrieve_by_id(), ast_sorcery_unref, ast_sorcery_update(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_update_uncreated | ) |
Definition at line 2117 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_unref, ast_sorcery_update(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_delete | ) |
Definition at line 2152 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_create(), ast_sorcery_delete(), ast_sorcery_retrieve_by_id(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_delete_uncreated | ) |
Definition at line 2199 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_delete(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_is_stale | ) |
Definition at line 2234 of file test_sorcery.c.
References ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_is_stale(), ast_sorcery_object_field_register_custom_nodoc, ast_sorcery_object_field_register_nodoc, ast_sorcery_open, ast_sorcery_unref, ast_sorcery_wizard_register, ast_sorcery_wizard_unregister(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, test_sorcery_object::bob, FLDSET, sip_to_pjsip::info(), sorcery_test_caching::is_stale, jack_handler(), jack_str(), jim_handler(), jim_vl(), test_sorcery_object::joe, NULL, OPT_UINT_T, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | caching_wizard_behavior | ) |
Definition at line 2312 of file test_sorcery.c.
References ao2_cleanup, ast_category_get(), ast_config_destroy(), ast_config_load2(), ast_sorcery_alloc(), ast_sorcery_apply_config, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_create(), ast_sorcery_delete(), ast_sorcery_internal_object_register, ast_sorcery_open, ast_sorcery_retrieve_by_id(), ast_sorcery_unref, ast_sorcery_update(), ast_sorcery_wizard_register, ast_sorcery_wizard_unregister(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, config, CONFIG_FLAG_NOCACHE, sorcery_test_caching::created, sorcery_test_caching::deleted, end, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, test_sorcery_object_alloc(), and sorcery_test_caching::updated.
AST_TEST_DEFINE | ( | object_type_observer | ) |
Definition at line 2425 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_cond_destroy, ast_cond_init, ast_cond_timedwait, ast_mutex_destroy, ast_mutex_init, ast_mutex_lock, ast_mutex_unlock, ast_sorcery_alloc(), ast_sorcery_create(), ast_sorcery_delete(), ast_sorcery_observer_add(), ast_sorcery_reload(), ast_sorcery_unref, ast_sorcery_update(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_tvnow(), sorcery_test_observer::cond, sorcery_test_observer::created, sorcery_test_observer::deleted, end, sip_to_pjsip::info(), sorcery_test_observer::loaded, sorcery_test_observer::lock, NULL, observer, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and sorcery_test_observer::updated.
AST_TEST_DEFINE | ( | configuration_file_wizard | ) |
Definition at line 2570 of file test_sorcery.c.
References ao2_cleanup, ast_config_destroy(), ast_config_load2(), ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_load(), ast_sorcery_object_field_register_nodoc, ast_sorcery_open, ast_sorcery_retrieve_by_id(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, test_sorcery_object::bob, config, CONFIG_FLAG_NOCACHE, FLDSET, sip_to_pjsip::info(), test_sorcery_object::joe, NULL, OPT_UINT_T, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | configuration_file_wizard_with_file_integrity | ) |
Definition at line 2633 of file test_sorcery.c.
References ao2_cleanup, ast_config_destroy(), ast_config_load2(), ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_load(), ast_sorcery_object_field_register_nodoc, ast_sorcery_open, ast_sorcery_retrieve_by_id(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, test_sorcery_object::bob, config, CONFIG_FLAG_NOCACHE, FLDSET, sip_to_pjsip::info(), test_sorcery_object::joe, NULL, OPT_UINT_T, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | configuration_file_wizard_with_criteria | ) |
Definition at line 2687 of file test_sorcery.c.
References ao2_cleanup, ast_config_destroy(), ast_config_load2(), ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_load(), ast_sorcery_object_field_register_nodoc, ast_sorcery_open, ast_sorcery_retrieve_by_id(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, test_sorcery_object::bob, config, CONFIG_FLAG_NOCACHE, FLDSET, sip_to_pjsip::info(), test_sorcery_object::joe, NULL, OPT_NOOP_T, OPT_UINT_T, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | configuration_file_wizard_retrieve_field | ) |
Definition at line 2745 of file test_sorcery.c.
References ao2_cleanup, ast_config_destroy(), ast_config_load2(), AST_RETRIEVE_FLAG_DEFAULT, ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_load(), ast_sorcery_object_field_register_nodoc, ast_sorcery_object_get_id(), ast_sorcery_open, ast_sorcery_retrieve_by_fields(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), test_sorcery_object::bob, config, CONFIG_FLAG_NOCACHE, FLDSET, sip_to_pjsip::info(), test_sorcery_object::joe, NULL, OPT_UINT_T, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | configuration_file_wizard_retrieve_multiple | ) |
Definition at line 2803 of file test_sorcery.c.
References ao2_cleanup, ao2_container_count(), ast_config_destroy(), ast_config_load2(), AST_RETRIEVE_FLAG_MULTIPLE, ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_load(), ast_sorcery_object_field_register_nodoc, ast_sorcery_open, ast_sorcery_retrieve_by_fields(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), test_sorcery_object::bob, config, CONFIG_FLAG_NOCACHE, FLDSET, sip_to_pjsip::info(), test_sorcery_object::joe, NULL, OPT_UINT_T, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | configuration_file_wizard_retrieve_multiple_all | ) |
Definition at line 2880 of file test_sorcery.c.
References ao2_cleanup, ao2_container_count(), ast_config_destroy(), ast_config_load2(), AST_RETRIEVE_FLAG_ALL, AST_RETRIEVE_FLAG_MULTIPLE, ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_internal_object_register, ast_sorcery_load(), ast_sorcery_object_field_register_nodoc, ast_sorcery_open, ast_sorcery_retrieve_by_fields(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, test_sorcery_object::bob, config, CONFIG_FLAG_NOCACHE, FLDSET, sip_to_pjsip::info(), test_sorcery_object::joe, NULL, OPT_UINT_T, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
AST_TEST_DEFINE | ( | dialplan_function | ) |
Definition at line 2937 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_free, ast_func_read2(), ast_sorcery_alloc(), ast_sorcery_create(), ast_sorcery_unref, ast_str_buffer(), ast_str_create, ast_str_reset(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_variable_new, ast_variables_destroy(), buf, sip_to_pjsip::info(), jim_handler(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | object_field_registered | ) |
Definition at line 3107 of file test_sorcery.c.
References alloc_and_initialize_sorcery(), ao2_cleanup, ast_sorcery_get_object_type(), ast_sorcery_is_object_field_registered(), ast_sorcery_object_fields_register(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, test_sorcery_regex_fields(), and test_sorcery_regex_handler().
AST_TEST_DEFINE | ( | global_observation | ) |
Definition at line 3165 of file test_sorcery.c.
References ast_sorcery_global_observer_add(), ast_sorcery_global_observer_remove(), ast_sorcery_open, ast_sorcery_unref, ast_sorcery_wizard_register, ast_sorcery_wizard_unregister(), AST_TEST_NOT_RUN, AST_TEST_PASS, event_observed, sip_to_pjsip::info(), instance_observer(), NULL, RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, wizard_observer(), and ast_sorcery_global_observer::wizard_registered.
AST_TEST_DEFINE | ( | instance_observation | ) |
Definition at line 3267 of file test_sorcery.c.
References ast_sorcery_apply_default, ast_sorcery_instance_observer_add(), ast_sorcery_instance_observer_remove(), ast_sorcery_internal_object_register, ast_sorcery_load(), ast_sorcery_load_object(), ast_sorcery_open, ast_sorcery_reload(), ast_sorcery_reload_object(), ast_sorcery_unref, AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, event_observed, sip_to_pjsip::info(), ast_sorcery_instance_observer::instance_loaded, instance_loaded_observer(), ast_sorcery_instance_observer::instance_loading, instance_reloaded_observer(), NULL, ast_sorcery_instance_observer::object_type_loaded, object_type_loaded_observer(), ast_sorcery_instance_observer::object_type_loading, object_type_registered_observer(), object_type_reloaded_observer(), RAII_VAR, sorcery, TEST_EXECUTE, TEST_INIT, test_sorcery_object_alloc(), ast_sorcery_instance_observer::wizard_mapped, and wizard_mapped_observer().
AST_TEST_DEFINE | ( | wizard_observation | ) |
Definition at line 3380 of file test_sorcery.c.
References ast_sorcery_apply_default, ast_sorcery_internal_object_register, ast_sorcery_load_object(), ast_sorcery_open, ast_sorcery_reload_object(), ast_sorcery_unref, ast_sorcery_wizard_observer_add(), ast_sorcery_wizard_observer_remove(), ast_sorcery_wizard_register, ast_sorcery_wizard_unregister(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, event_observed, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, sorcery_test_load(), TEST_EXECUTE, TEST_INIT, test_sorcery_object_alloc(), ast_sorcery_wizard_observer::wizard_loaded, wizard_loaded_observer(), ast_sorcery_wizard_observer::wizard_loading, and wizard_reloaded_observer().
AST_TEST_DEFINE | ( | wizard_apply_and_insert | ) |
Definition at line 3452 of file test_sorcery.c.
References ao2_cleanup, ao2_ref, ast_sorcery_apply_default, ast_sorcery_get_wizard_mapping(), ast_sorcery_get_wizard_mapping_count(), ast_sorcery_insert_wizard_mapping, ast_sorcery_object_type_insert_wizard, ast_sorcery_object_type_remove_wizard, ast_sorcery_open, ast_sorcery_remove_wizard_mapping, ast_sorcery_unref, AST_SORCERY_WIZARD_APPLY_ALLOW_DUPLICATE, ast_sorcery_wizard_register, ast_sorcery_wizard_unregister(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), NULL, RAII_VAR, sorcery, sorcery_test_load(), TEST_EXECUTE, and TEST_INIT.
AST_TEST_DEFINE | ( | wizard_read_only | ) |
Definition at line 3569 of file test_sorcery.c.
References ao2_cleanup, ast_sorcery_alloc(), ast_sorcery_apply_default, AST_SORCERY_APPLY_SUCCESS, ast_sorcery_create(), ast_sorcery_get_wizard_mapping_count(), ast_sorcery_internal_object_register, ast_sorcery_object_type_apply_wizard, ast_sorcery_open, ast_sorcery_unref, AST_SORCERY_WIZARD_APPLY_READONLY, ast_sorcery_wizard_register, ast_sorcery_wizard_unregister(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, sip_to_pjsip::info(), ast_sorcery_wizard::name, NULL, RAII_VAR, sorcery, sorcery_test_load(), TEST_EXECUTE, TEST_INIT, and test_sorcery_object_alloc().
|
static |
Definition at line 3215 of file test_sorcery.c.
References event_observed.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 3158 of file test_sorcery.c.
References event_observed.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 3223 of file test_sorcery.c.
References event_observed.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 294 of file test_sorcery.c.
References ast_strdupa, ast_variable_list_append, ast_variable_new, test_sorcery_object::jack, strsep(), and ast_variable::value.
Referenced by alloc_and_initialize_sorcery(), and AST_TEST_DEFINE().
|
static |
Definition at line 316 of file test_sorcery.c.
References ast_free, ast_str_append(), ast_str_buffer(), ast_str_create, ast_str_truncate(), ast_strdup, test_sorcery_object::jack, ast_variable::next, NULL, RAII_VAR, str, and ast_variable::value.
Referenced by alloc_and_initialize_sorcery(), and AST_TEST_DEFINE().
|
static |
Definition at line 284 of file test_sorcery.c.
References ast_variable_list_append, ast_variables_dup(), and test_sorcery_object::jim.
Referenced by alloc_and_initialize_sorcery(), and AST_TEST_DEFINE().
|
static |
Definition at line 307 of file test_sorcery.c.
References ast_variables_dup(), and test_sorcery_object::jim.
Referenced by alloc_and_initialize_sorcery(), and AST_TEST_DEFINE().
|
static |
Definition at line 3688 of file test_sorcery.c.
References apply_config(), AST_MODULE_LOAD_SUCCESS, and AST_TEST_REGISTER.
|
static |
Definition at line 3249 of file test_sorcery.c.
References event_observed.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 3241 of file test_sorcery.c.
References event_observed.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 3258 of file test_sorcery.c.
References event_observed.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 247 of file test_sorcery.c.
References ast_cond_signal, sorcery_test_observer::cond, sorcery_test_observer::created, sorcery_test_observer::lock, lock, observer, and SCOPED_MUTEX.
|
static |
Definition at line 261 of file test_sorcery.c.
References ast_cond_signal, sorcery_test_observer::cond, sorcery_test_observer::deleted, sorcery_test_observer::lock, lock, observer, and SCOPED_MUTEX.
|
static |
Definition at line 268 of file test_sorcery.c.
References ast_cond_signal, sorcery_test_observer::cond, sorcery_test_observer::loaded, sorcery_test_observer::lock, lock, observer, and SCOPED_MUTEX.
|
static |
Definition at line 254 of file test_sorcery.c.
References ast_cond_signal, sorcery_test_observer::cond, sorcery_test_observer::lock, lock, observer, SCOPED_MUTEX, and sorcery_test_observer::updated.
|
static |
Definition at line 191 of file test_sorcery.c.
|
static |
Definition at line 196 of file test_sorcery.c.
References sorcery_test_caching::created, sorcery_test_caching::deleted, and sorcery_test_caching::updated.
|
static |
Definition at line 215 of file test_sorcery.c.
References sorcery_test_caching::deleted.
|
static |
Definition at line 221 of file test_sorcery.c.
References sorcery_test_caching::is_stale.
|
static |
Definition at line 3366 of file test_sorcery.c.
Referenced by AST_TEST_DEFINE().
|
static |
|
static |
Definition at line 204 of file test_sorcery.c.
References ast_sorcery_alloc(), sorcery_test_caching::created, sorcery_test_caching::deleted, and NULL.
|
static |
Definition at line 209 of file test_sorcery.c.
References sorcery_test_caching::updated.
|
static |
Simple apply handler which sets global scope integer to 1 if called.
Definition at line 171 of file test_sorcery.c.
References apply_handler_called.
Referenced by AST_TEST_DEFINE().
|
static |
Internal function which copies pre-defined data into an object, natively.
Definition at line 93 of file test_sorcery.c.
References ast_variable_new, test_sorcery_object::bob, test_sorcery_object::jack, test_sorcery_object::jim, and test_sorcery_object::joe.
Referenced by AST_TEST_DEFINE().
|
static |
Internal function which creates a pre-defined diff natively.
Definition at line 104 of file test_sorcery.c.
References ast_variable_new.
Referenced by AST_TEST_DEFINE().
|
static |
Internal function to allocate a test object.
Definition at line 61 of file test_sorcery.c.
References ast_sorcery_generic_alloc(), and test_sorcery_object_destroy().
Referenced by alloc_and_initialize_sorcery(), and AST_TEST_DEFINE().
|
static |
Internal function to destroy a test object.
Definition at line 53 of file test_sorcery.c.
References ast_variables_destroy(), test_sorcery_object::jack, and test_sorcery_object::jim.
Referenced by test_sorcery_object_alloc().
|
static |
Internal function which creates some ast_variable structures.
Definition at line 121 of file test_sorcery.c.
References ast_variable_new.
Referenced by AST_TEST_DEFINE().
|
static |
Internal function which sets some values.
Definition at line 111 of file test_sorcery.c.
References test_sorcery_object::bob.
Referenced by AST_TEST_DEFINE().
|
static |
Internal function for object set transformation.
Definition at line 67 of file test_sorcery.c.
References ast_variable_new, ast_variables_destroy(), ast_variable::name, ast_variable::next, NULL, and ast_variable::value.
Referenced by AST_TEST_DEFINE().
|
static |
|
static |
Definition at line 3357 of file test_sorcery.c.
References event_observed.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 3231 of file test_sorcery.c.
References event_observed, and ast_sorcery_wizard::name.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 3151 of file test_sorcery.c.
References event_observed, and ast_sorcery_wizard::name.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 3371 of file test_sorcery.c.
References event_observed.
Referenced by AST_TEST_DEFINE().
|
static |
Definition at line 3745 of file test_sorcery.c.
|
static |
Global scope apply handler integer to make sure it executed.
Definition at line 168 of file test_sorcery.c.
Referenced by AST_TEST_DEFINE(), and test_apply_handler().
|
static |
Definition at line 3745 of file test_sorcery.c.
|
static |
Global scope caching structure for testing.
Definition at line 178 of file test_sorcery.c.
|
static |
Definition at line 3149 of file test_sorcery.c.
Referenced by AST_TEST_DEFINE(), instance_loaded_observer(), instance_observer(), instance_reloaded_observer(), object_type_loaded_observer(), object_type_registered_observer(), object_type_reloaded_observer(), wizard_loaded_observer(), wizard_mapped_observer(), wizard_observer(), and wizard_reloaded_observer().
|
static |
Global scope observer structure for testing.
Definition at line 181 of file test_sorcery.c.
Referenced by AST_TEST_DEFINE(), sorcery_observer_created(), sorcery_observer_deleted(), sorcery_observer_loaded(), and sorcery_observer_updated().
|
static |
Test sorcery observer implementation.
Definition at line 276 of file test_sorcery.c.
|
static |
Definition at line 3564 of file test_sorcery.c.
|
static |
Dummy sorcery wizards, not actually used so we only populate the name and nothing else.
Definition at line 228 of file test_sorcery.c.
|
static |
Definition at line 236 of file test_sorcery.c.
|
static |
Definition at line 183 of file test_sorcery.c.
Referenced by sorcery_test_open().