MCPcopy Create free account
hub / github.com/acl-dev/acl / test_stream_input

Function test_stream_input

test/json/json_check.c:51–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static int test_stream_input(void)
52{
53 ACL_JSON *json = acl_json_alloc();
54 int ok;
55
56 acl_json_update(json, "{\"split\":\"\\u4F");
57 acl_json_update(json, "60\\u597");
58 acl_json_update(json, "D\",\"emoji\":\"\\uD83D");
59 acl_json_update(json, "\\uDE00\"}");
60
61 ok = acl_json_finish(json)
62 && check_tag_value(json, "split", UTF8_NI_HAO)
63 && check_tag_value(json, "emoji", UTF8_EMOJI);
64
65 acl_json_free(json);
66 return ok;
67}
68
69static int test_invalid_hex_input(void)
70{

Callers 1

mainFunction · 0.85

Calls 5

acl_json_allocFunction · 0.85
acl_json_updateFunction · 0.85
acl_json_finishFunction · 0.85
check_tag_valueFunction · 0.85
acl_json_freeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…