MCPcopy Create free account
hub / github.com/DaveGamble/cJSON / assert_not_object

Function assert_not_object

tests/parse_object.c:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static void assert_not_object(const char *json)
54{
55 parse_buffer parsebuffer = { 0, 0, 0, 0, { 0, 0, 0 } };
56 parsebuffer.content = (const unsigned char*)json;
57 parsebuffer.length = strlen(json) + sizeof("");
58 parsebuffer.hooks = global_hooks;
59
60 TEST_ASSERT_FALSE(parse_object(item, &parsebuffer));
61 assert_is_invalid(item);
62 reset(item);
63}
64
65static void assert_parse_object(const char *json)
66{

Calls 2

parse_objectFunction · 0.85
resetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…