MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / assert_parse_array

Function assert_parse_array

tests/parse_array.c:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static void assert_parse_array(const char *json)
57{
58 parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0 } };
59 buffer.content = (const unsigned char*)json;
60 buffer.length = strlen(json) + sizeof("");
61 buffer.hooks = global_hooks;
62
63 TEST_ASSERT_TRUE(parse_array(item, &buffer));
64 assert_is_array(item);
65}
66
67static void parse_array_should_parse_empty_arrays(void)
68{

Calls 2

parse_arrayFunction · 0.85
assert_is_arrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…