libamxd
6.4.1
Data Model Manager
|
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <cmocka.h>
#include <amxc/amxc.h>
#include <amxp/amxp_signal.h>
#include <amxp/amxp_slot.h>
#include <amxd/amxd_dm.h>
#include <amxd/amxd_object.h>
#include "test_amxd_object.h"
#include <amxc/amxc_macros.h>
Go to the source code of this file.
Functions | |
void | test_amxd_object_add_object (UNUSED void **state) |
void | test_amxd_object_add_object_invalid_args (UNUSED void **state) |
void | test_amxd_object_get_parent (UNUSED void **state) |
void | test_amxd_object_get_root (UNUSED void **state) |
void | test_amxd_object_get_dm (UNUSED void **state) |
void | test_amxd_object_get_child (UNUSED void **state) |
void | test_amxd_object_get_instance (UNUSED void **state) |
void | test_amxd_object_get_instance_difficult_alias_name (UNUSED void **state) |
void | test_amxd_object_get (UNUSED void **state) |
void | test_amxd_object_find (UNUSED void **state) |
void | test_amxd_object_findf (UNUSED void **state) |
void | test_amxd_object_get_path (UNUSED void **state) |
static void | check_path_down (amxd_object_t *const object, UNUSED int32_t depth, void *priv) |
static void | check_path_up (amxd_object_t *const object, UNUSED int32_t depth, void *priv) |
void | test_amxd_object_walk (UNUSED void **state) |
static bool | no_tempate_child_objects (amxd_object_t *const object, UNUSED int32_t depth, void *priv) |
static bool | no_root_objects (amxd_object_t *const object, UNUSED int32_t depth, void *priv) |
static void | check_path_down_filtered (amxd_object_t *const object, UNUSED int32_t depth, void *priv) |
void | test_amxd_object_walk_filtered (UNUSED void **state) |
static void | check_path_down_depth (amxd_object_t *const object, UNUSED int32_t depth, void *priv) |
static void | check_path_up_depth (amxd_object_t *const object, UNUSED int32_t depth, void *priv) |
void | test_amxd_object_walk_depth (UNUSED void **state) |
void | test_amxd_object_walk_invalid_args (UNUSED void **state) |
void | test_amxd_object_is_child_of (UNUSED void **state) |
Variables | |
static amxd_dm_t | dm |
static int | pos = 0 |
static char * | expected_paths_down [] |
static char * | expected_paths_up [] |
static char * | expected_paths_down_filtered [] |
static char * | expected_paths_down_depth [] |
static char * | expected_paths_up_depth [] |
|
static |
Definition at line 631 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 800 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 744 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 655 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 822 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 737 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 719 of file test_amxd_object_hierarchy.c.
void test_amxd_object_add_object | ( | UNUSED void ** | state | ) |
Definition at line 77 of file test_amxd_object_hierarchy.c.
void test_amxd_object_add_object_invalid_args | ( | UNUSED void ** | state | ) |
Definition at line 106 of file test_amxd_object_hierarchy.c.
void test_amxd_object_find | ( | UNUSED void ** | state | ) |
Definition at line 431 of file test_amxd_object_hierarchy.c.
void test_amxd_object_findf | ( | UNUSED void ** | state | ) |
Definition at line 465 of file test_amxd_object_hierarchy.c.
void test_amxd_object_get | ( | UNUSED void ** | state | ) |
Definition at line 394 of file test_amxd_object_hierarchy.c.
void test_amxd_object_get_child | ( | UNUSED void ** | state | ) |
Definition at line 228 of file test_amxd_object_hierarchy.c.
void test_amxd_object_get_dm | ( | UNUSED void ** | state | ) |
Definition at line 197 of file test_amxd_object_hierarchy.c.
void test_amxd_object_get_instance | ( | UNUSED void ** | state | ) |
Definition at line 265 of file test_amxd_object_hierarchy.c.
void test_amxd_object_get_instance_difficult_alias_name | ( | UNUSED void ** | state | ) |
Definition at line 304 of file test_amxd_object_hierarchy.c.
void test_amxd_object_get_parent | ( | UNUSED void ** | state | ) |
Definition at line 130 of file test_amxd_object_hierarchy.c.
void test_amxd_object_get_path | ( | UNUSED void ** | state | ) |
Definition at line 501 of file test_amxd_object_hierarchy.c.
void test_amxd_object_get_root | ( | UNUSED void ** | state | ) |
Definition at line 163 of file test_amxd_object_hierarchy.c.
void test_amxd_object_is_child_of | ( | UNUSED void ** | state | ) |
Definition at line 878 of file test_amxd_object_hierarchy.c.
void test_amxd_object_walk | ( | UNUSED void ** | state | ) |
Definition at line 672 of file test_amxd_object_hierarchy.c.
void test_amxd_object_walk_depth | ( | UNUSED void ** | state | ) |
Definition at line 839 of file test_amxd_object_hierarchy.c.
void test_amxd_object_walk_filtered | ( | UNUSED void ** | state | ) |
Definition at line 761 of file test_amxd_object_hierarchy.c.
void test_amxd_object_walk_invalid_args | ( | UNUSED void ** | state | ) |
Definition at line 873 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 75 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 616 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 795 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 706 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 648 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 817 of file test_amxd_object_hierarchy.c.
|
static |
Definition at line 615 of file test_amxd_object_hierarchy.c.