libamxd
6.4.1
Data Model Manager
|
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <cmocka.h>
#include <string.h>
#include <amxc/amxc.h>
#include <amxp/amxp_signal.h>
#include <amxp/amxp_slot.h>
#include <amxd/amxd_common.h>
#include <amxd/amxd_dm.h>
#include <amxd/amxd_object.h>
#include <amxd/amxd_object_event.h>
#include <amxd/amxd_parameter.h>
#include <amxd/amxd_function.h>
#include <amxd/amxd_action.h>
#include <amxd/amxd_mib.h>
#include <amxd/amxd_transaction.h>
#include <amxd_priv.h>
#include "test_amxd_mib.h"
#include <amxc/amxc_macros.h>
Go to the source code of this file.
Functions | |
static void | test_event_handler (const char *const sig_name, UNUSED const amxc_var_t *const data, void *const priv) |
static amxd_status_t | test_mib_cleanup_data (amxd_object_t *const object, amxd_param_t *const param, amxd_action_t reason, UNUSED const amxc_var_t *const args, UNUSED amxc_var_t *const retval, void *priv) |
static amxd_object_t * | test_build_dm (void) |
void | test_can_define_and_store_mib (UNUSED void **state) |
static int | count_objects (UNUSED amxd_object_t *templ, UNUSED amxd_object_t *obj, void *priv) |
void | test_can_add_remove_mib_to_from_object (UNUSED void **state) |
void | test_can_add_remove_mib_to_from_object2 (UNUSED void **state) |
void | test_can_add_multiple_mibs (UNUSED void **state) |
void | test_add_mib_fails_when_duplicates (UNUSED void **state) |
void | test_add_mib_fails_when_object_not_in_dm (UNUSED void **state) |
void | test_functions_check_input_args (UNUSED void **state) |
void | test_get_root_of_mib_is_null (UNUSED void **state) |
void | test_set_attrs_on_mib_fails (UNUSED void **state) |
void | test_add_mib_to_object_fails_when_leads_to_function_duplicate (UNUSED void **state) |
void | test_add_mib_can_override_function (UNUSED void **state) |
void | test_add_mib_function_inherits_argument_attrs (UNUSED void **state) |
void | test_add_mib_to_instance (UNUSED void **state) |
void | test_add_mib_using_transaction (UNUSED void **state) |
void | test_add_mib_to_template (UNUSED void **state) |
void | test_mib_not_removed_when_not_added (UNUSED void **state) |
void | test_mib_events (UNUSED void **state) |
void | test_can_fetch_dm_from_mib (UNUSED void **state) |
void | test_can_declare_event_in_mib (UNUSED void **state) |
void | test_add_mib_object_can_be_read_using_name_path (UNUSED void **state) |
void | test_object_get_mibs (UNUSED void **state) |
Variables | |
static amxd_dm_t | dm |
|
static |
Definition at line 202 of file test_amxd_mib.c.
void test_add_mib_can_override_function | ( | UNUSED void ** | state | ) |
Definition at line 524 of file test_amxd_mib.c.
void test_add_mib_fails_when_duplicates | ( | UNUSED void ** | state | ) |
Definition at line 385 of file test_amxd_mib.c.
void test_add_mib_fails_when_object_not_in_dm | ( | UNUSED void ** | state | ) |
Definition at line 406 of file test_amxd_mib.c.
void test_add_mib_function_inherits_argument_attrs | ( | UNUSED void ** | state | ) |
Definition at line 548 of file test_amxd_mib.c.
void test_add_mib_object_can_be_read_using_name_path | ( | UNUSED void ** | state | ) |
Definition at line 855 of file test_amxd_mib.c.
void test_add_mib_to_instance | ( | UNUSED void ** | state | ) |
Definition at line 590 of file test_amxd_mib.c.
void test_add_mib_to_object_fails_when_leads_to_function_duplicate | ( | UNUSED void ** | state | ) |
Definition at line 499 of file test_amxd_mib.c.
void test_add_mib_to_template | ( | UNUSED void ** | state | ) |
Definition at line 685 of file test_amxd_mib.c.
void test_add_mib_using_transaction | ( | UNUSED void ** | state | ) |
Definition at line 642 of file test_amxd_mib.c.
|
static |
Definition at line 128 of file test_amxd_mib.c.
void test_can_add_multiple_mibs | ( | UNUSED void ** | state | ) |
Definition at line 330 of file test_amxd_mib.c.
void test_can_add_remove_mib_to_from_object | ( | UNUSED void ** | state | ) |
Definition at line 208 of file test_amxd_mib.c.
void test_can_add_remove_mib_to_from_object2 | ( | UNUSED void ** | state | ) |
Definition at line 262 of file test_amxd_mib.c.
void test_can_declare_event_in_mib | ( | UNUSED void ** | state | ) |
Definition at line 811 of file test_amxd_mib.c.
void test_can_define_and_store_mib | ( | UNUSED void ** | state | ) |
Definition at line 156 of file test_amxd_mib.c.
void test_can_fetch_dm_from_mib | ( | UNUSED void ** | state | ) |
Definition at line 786 of file test_amxd_mib.c.
|
static |
Definition at line 86 of file test_amxd_mib.c.
void test_functions_check_input_args | ( | UNUSED void ** | state | ) |
Definition at line 430 of file test_amxd_mib.c.
void test_get_root_of_mib_is_null | ( | UNUSED void ** | state | ) |
Definition at line 456 of file test_amxd_mib.c.
|
static |
Definition at line 100 of file test_amxd_mib.c.
void test_mib_events | ( | UNUSED void ** | state | ) |
Definition at line 751 of file test_amxd_mib.c.
void test_mib_not_removed_when_not_added | ( | UNUSED void ** | state | ) |
Definition at line 719 of file test_amxd_mib.c.
void test_object_get_mibs | ( | UNUSED void ** | state | ) |
Definition at line 897 of file test_amxd_mib.c.
void test_set_attrs_on_mib_fails | ( | UNUSED void ** | state | ) |
Definition at line 477 of file test_amxd_mib.c.
|
static |
Definition at line 84 of file test_amxd_mib.c.