DTNMA Reference Tools v2.0.0 - 9.gaff6489
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
|
Test the cace_ari_text.h interfaces. More...
#include <cace/ari/text.h>
#include <cace/ari/text_util.h>
#include <cace/amm/typing.h>
#include <unity.h>
Macros | |
#define | TEST_CASE(...) |
Functions | |
void | tearDown (void) |
static void | check_encode (const cace_ari_t *ari, const char *expect, const cace_ari_text_enc_opts_t opts) |
Check a single call to cace_ari_text_encode(). | |
void | test_ari_text_encode_lit_prim_undefined (void) |
void | test_ari_text_encode_lit_prim_null (void) |
void | test_ari_text_encode_lit_prim_int (int64_t value, enum cace_ari_int_base_e base, const char *expect) |
void | test_ari_text_encode_lit_prim_uint (uint64_t value, enum cace_ari_int_base_e base, const char *expect) |
void | test_ari_text_encode_lit_prim_float64 (cace_ari_real64 value, char form, const char *expect) |
void | test_ari_text_encode_lit_prim_tstr (const char *value, bool copy, bool text_identity, const char *expect) |
void | test_ari_text_encode_lit_prim_bstr (const char *data, size_t data_len, enum cace_ari_bstr_form_e form, const char *expect) |
void | test_ari_text_encode_lit_typed_ac_empty (void) |
void | test_ari_text_encode_lit_typed_ac_1item (void) |
void | test_ari_text_encode_lit_typed_ac_2item (void) |
void | test_ari_text_encode_lit_typed_am_2item (void) |
void | test_ari_text_encode_lit_typed_execset_2tgt (void) |
void | test_ari_text_encode_objref_text (const char *org_id, const char *model_id, cace_ari_type_t type_id, const char *obj_id, const char *expect) |
void | test_ari_text_encode_objref_int (cace_ari_int_id_t org_id, cace_ari_int_id_t model_id, cace_ari_type_t type_id, cace_ari_int_id_t obj_id, const char *expect) |
void | test_ari_text_encode_nsref_text (const char *org_id, const char *model_id, const char *model_rev, const char *expect) |
void | test_ari_text_encode_nsref_int (cace_ari_int_id_t org_id, cace_ari_int_id_t model_id, const char *expect) |
void | test_ari_text_encode_ariref (cace_ari_type_t type_id, const char *obj_id, const char *expect) |
Variables | |
static char * | errm = NULL |
Resource cleanup for failure messages. | |
Test the cace_ari_text.h interfaces.