#include <sys/time.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <inttypes.h>
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include <cmocka.h>
#include <amxc/amxc.h>
#include "test_issue_59.h"
Go to the source code of this file.
|
#define | UNUSED __attribute__((unused)) |
|
◆ UNUSED
#define UNUSED __attribute__((unused)) |
◆ test_get_var_path_returns_null_when_key_not_found()
void test_get_var_path_returns_null_when_key_not_found |
( |
__attribute__((unused)) void ** |
state | ) |
|
Definition at line 101 of file test_issue_59.c.
#define AMXC_VAR_FLAG_NO_INDEX
Only search by key and not by index. This flag can be used with amxc_var_get_path function.
#define AMXC_VAR_FLAG_DEFAULT
The default flag, do not copy, use variant as is.
amxc_var_t * amxc_var_get_path(const amxc_var_t *const var, const char *const path, const int flags)
Retrieves the variant at the given path of a composite variant.
◆ test_var_path_setup()
int test_var_path_setup |
( |
__attribute__((unused)) void ** |
state | ) |
|
Definition at line 84 of file test_issue_59.c.
#define cstring_t
Convenience macro.
#define AMXC_VAR_ID_HTABLE
Ambiorix Hash Table variant id.
#define amxc_var_add_key(type, var, key, data)
Convenience macro for adding a variant to composite variant type.
int amxc_var_set_type(amxc_var_t *const var, const uint32_t type)
Change the variant data type.
int amxc_var_new(amxc_var_t **var)
Allocates a variant and initializes it to the null variant type.
The hash table structure.
static amxc_var_t * second
static amxc_var_t * first
static amxc_var_t * contact
static amxc_var_t * device
static amxc_var_t * phonebook
◆ test_var_path_teardown()
int test_var_path_teardown |
( |
__attribute__((unused)) void ** |
state | ) |
|
Definition at line 96 of file test_issue_59.c.
void amxc_var_delete(amxc_var_t **var)
Frees the previously allocated variant.
◆ contact
◆ device
◆ first
◆ phonebook
◆ second
◆ var