Home
last modified time | relevance | path

Searched refs:parsebuffer (Results 1 – 4 of 4) sorted by relevance

/third_party/cJSON/tests/
Dparse_object.c55 parse_buffer parsebuffer = { 0, 0, 0, 0, { 0, 0, 0 } }; in assert_not_object() local
56 parsebuffer.content = (const unsigned char*)json; in assert_not_object()
57 parsebuffer.length = strlen(json) + sizeof(""); in assert_not_object()
58 parsebuffer.hooks = global_hooks; in assert_not_object()
60 TEST_ASSERT_FALSE(parse_object(item, &parsebuffer)); in assert_not_object()
67 parse_buffer parsebuffer = { 0, 0, 0, 0, { 0, 0, 0 } }; in assert_parse_object() local
68 parsebuffer.content = (const unsigned char*)json; in assert_parse_object()
69 parsebuffer.length = strlen(json) + sizeof(""); in assert_parse_object()
70 parsebuffer.hooks = global_hooks; in assert_parse_object()
72 TEST_ASSERT_TRUE(parse_object(item, &parsebuffer)); in assert_parse_object()
Dprint_value.c36 parse_buffer parsebuffer = { 0, 0, 0, 0, { 0, 0, 0 } }; in assert_print_value() local
43 parsebuffer.content = (const unsigned char*)input; in assert_print_value()
44 parsebuffer.length = strlen(input) + sizeof(""); in assert_print_value()
45 parsebuffer.hooks = global_hooks; in assert_print_value()
49 TEST_ASSERT_TRUE_MESSAGE(parse_value(item, &parsebuffer), "Failed to parse value."); in assert_print_value()
Dprint_object.c36 parse_buffer parsebuffer = { 0, 0, 0, 0, { 0, 0, 0 } }; in assert_print_object() local
39 parsebuffer.content = (const unsigned char*)input; in assert_print_object()
40 parsebuffer.length = strlen(input) + sizeof(""); in assert_print_object()
41 parsebuffer.hooks = global_hooks; in assert_print_object()
58 TEST_ASSERT_TRUE_MESSAGE(parse_object(item, &parsebuffer), "Failed to parse object."); in assert_print_object()
Dprint_array.c37 parse_buffer parsebuffer = { 0, 0, 0, 0, { 0, 0, 0 } }; in assert_print_array() local
38 parsebuffer.content = (const unsigned char*)input; in assert_print_array()
39 parsebuffer.length = strlen(input) + sizeof(""); in assert_print_array()
40 parsebuffer.hooks = global_hooks; in assert_print_array()
57 TEST_ASSERT_TRUE_MESSAGE(parse_array(item, &parsebuffer), "Failed to parse array."); in assert_print_array()