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

Function assert_parse_object

tests/parse_object.c:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static void assert_parse_object(const char *json)
66{
67 parse_buffer parsebuffer = { 0, 0, 0, 0, { 0, 0, 0 } };
68 parsebuffer.content = (const unsigned char*)json;
69 parsebuffer.length = strlen(json) + sizeof("");
70 parsebuffer.hooks = global_hooks;
71
72 TEST_ASSERT_TRUE(parse_object(item, &parsebuffer));
73 assert_is_object(item);
74}
75
76static void parse_object_should_parse_empty_objects(void)
77{

Calls 2

parse_objectFunction · 0.85
assert_is_objectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…