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

Function assert_not_array

tests/parse_array.c:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static void assert_not_array(const char *json)
46{
47 parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0 } };
48 buffer.content = (const unsigned char*)json;
49 buffer.length = strlen(json) + sizeof("");
50 buffer.hooks = global_hooks;
51
52 TEST_ASSERT_FALSE(parse_array(item, &buffer));
53 assert_is_invalid(item);
54}
55
56static void assert_parse_array(const char *json)
57{

Calls 1

parse_arrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…