|
DTNMA Reference Tools v2.1.0 - 13.gc5c0bac
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
#include <cace/amm/semtype.h>#include <cace/amm/typing.h>#include <cace/amm/obj_store.h>#include <cace/ari/text_util.h>#include <cace/ari/cbor.h>#include <cace/util/logging.h>#include <unity.h>
Include dependency graph for test_amm_typing.c:Macros | |
| #define | TEST_CASE(...) |
Functions | |
| void | suiteSetUp (void) |
| int | suiteTearDown (int failures) |
| static void | check_match (const cace_amm_type_t *type, const char *inhex, cace_amm_type_match_res_t expect) |
| static void | check_convert (const cace_amm_type_t *type, const char *inhex, const char *expecthex) |
| void | test_amm_type_get_name_builtin (cace_ari_type_t type) |
| void | test_amm_type_set_name_builtin (cace_ari_type_t type) |
| void | test_amm_type_match_null (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_int (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_ident (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_object (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_namespace (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_semtype_use_1 (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_semtype_ulist_1 (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_semtype_dlist_2item (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_semtype_dlist_seq_minmax (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_semtype_umap_1 (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_semtype_tblt_1 (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_match_semtype_union_1 (const char *inhex, cace_amm_type_match_res_t expect) |
| void | test_amm_type_convert_null (const char *inhex, const char *expecthex) |
| void | test_amm_type_convert_bool (const char *inhex, const char *expecthex) |
| void | test_amm_type_convert_byte (const char *inhex, const char *expecthex) |
| void | test_amm_type_convert_int (const char *inhex, const char *expecthex) |
| void | test_amm_type_convert_real64 (const char *inhex, const char *expecthex) |
| void | test_amm_type_convert_ident (const char *inhex, const char *expecthex) |
| void | test_amm_type_convert_object (const char *inhex, const char *expecthex) |
| void | test_amm_type_convert_namespace (const char *inhex, const char *expecthex) |
| void | test_amm_type_convert_tp (const char *inhex, const char *expecthex) |
| void | test_amm_type_convert_td (const char *inhex, const char *expecthex) |
Variables | |
| static cace_amm_obj_store_t | store |
| Dummy store for semantic types. | |
| #define TEST_CASE | ( | ... | ) |
|
static |
References cace_amm_type_convert(), cace_ari_cbor_decode(), cace_ari_cbor_encode(), cace_ari_deinit(), CACE_ARI_INIT_UNDEFINED, cace_base16_decode(), cace_base16_encode(), cace_data_deinit(), and cace_data_init().
Referenced by test_amm_type_convert_bool(), test_amm_type_convert_byte(), test_amm_type_convert_ident(), test_amm_type_convert_int(), test_amm_type_convert_namespace(), test_amm_type_convert_null(), test_amm_type_convert_object(), test_amm_type_convert_real64(), test_amm_type_convert_td(), and test_amm_type_convert_tp().
|
static |
References cace_amm_type_match(), cace_ari_cbor_decode(), cace_ari_deinit(), CACE_ARI_INIT_UNDEFINED, cace_base16_decode(), cace_data_deinit(), and cace_data_init().
Referenced by test_amm_type_match_ident(), test_amm_type_match_int(), test_amm_type_match_namespace(), test_amm_type_match_null(), test_amm_type_match_object(), test_amm_type_match_semtype_dlist_2item(), test_amm_type_match_semtype_dlist_seq_minmax(), test_amm_type_match_semtype_tblt_1(), test_amm_type_match_semtype_ulist_1(), test_amm_type_match_semtype_umap_1(), test_amm_type_match_semtype_union_1(), and test_amm_type_match_semtype_use_1().
| void suiteSetUp | ( | void | ) |
References cace_amm_obj_store_init(), cace_openlog(), and store.
| int suiteTearDown | ( | int | failures | ) |
References cace_amm_obj_store_deinit(), cace_closelog(), and store.
| void test_amm_type_convert_bool | ( | const char * | inhex, |
| const char * | expecthex | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_BOOL, and check_convert().
| void test_amm_type_convert_byte | ( | const char * | inhex, |
| const char * | expecthex | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_BYTE, and check_convert().
| void test_amm_type_convert_ident | ( | const char * | inhex, |
| const char * | expecthex | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_IDENT, and check_convert().
| void test_amm_type_convert_int | ( | const char * | inhex, |
| const char * | expecthex | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_INT, and check_convert().
| void test_amm_type_convert_namespace | ( | const char * | inhex, |
| const char * | expecthex | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_NAMESPACE, and check_convert().
| void test_amm_type_convert_null | ( | const char * | inhex, |
| const char * | expecthex | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_NULL, and check_convert().
| void test_amm_type_convert_object | ( | const char * | inhex, |
| const char * | expecthex | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_OBJECT, and check_convert().
| void test_amm_type_convert_real64 | ( | const char * | inhex, |
| const char * | expecthex | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_REAL64, and check_convert().
| void test_amm_type_convert_td | ( | const char * | inhex, |
| const char * | expecthex | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_TD, and check_convert().
| void test_amm_type_convert_tp | ( | const char * | inhex, |
| const char * | expecthex | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_TP, and check_convert().
| void test_amm_type_get_name_builtin | ( | cace_ari_type_t | type | ) |
| void test_amm_type_match_ident | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_IDENT, and check_match().
| void test_amm_type_match_int | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_INT, and check_match().
| void test_amm_type_match_namespace | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_NAMESPACE, and check_match().
| void test_amm_type_match_null | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_NULL, and check_match().
| void test_amm_type_match_object | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
References cace_amm_type_get_builtin(), CACE_ARI_TYPE_OBJECT, and check_match().
| void test_amm_type_match_semtype_dlist_2item | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
| void test_amm_type_match_semtype_dlist_seq_minmax | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
| void test_amm_type_match_semtype_tblt_1 | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
| void test_amm_type_match_semtype_ulist_1 | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
| void test_amm_type_match_semtype_umap_1 | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
| void test_amm_type_match_semtype_union_1 | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
| void test_amm_type_match_semtype_use_1 | ( | const char * | inhex, |
| cace_amm_type_match_res_t | expect | ||
| ) |
| void test_amm_type_set_name_builtin | ( | cace_ari_type_t | type | ) |
|
static |
Dummy store for semantic types.
Referenced by suiteSetUp(), suiteTearDown(), and test_amm_type_set_name_builtin().