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

Function assert_is_object

tests/parse_object.c:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31static cJSON item[1];
32
33static void assert_is_object(cJSON *object_item)
34{
35 TEST_ASSERT_NOT_NULL_MESSAGE(object_item, "Item is NULL.");
36
37 assert_not_in_list(object_item);
38 assert_has_type(object_item, cJSON_Object);
39 assert_has_no_reference(object_item);
40 assert_has_no_const_string(object_item);
41 assert_has_no_valuestring(object_item);
42 assert_has_no_string(object_item);
43}
44
45static void assert_is_child(cJSON *child_item, const char *name, int type)
46{

Callers 1

assert_parse_objectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…