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

Function assert_is_string

tests/parse_string.c:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31static cJSON item[1];
32
33static void assert_is_string(cJSON *string_item)
34{
35 TEST_ASSERT_NOT_NULL_MESSAGE(string_item, "Item is NULL.");
36
37 assert_not_in_list(string_item);
38 assert_has_no_child(string_item);
39 assert_has_type(string_item, cJSON_String);
40 assert_has_no_reference(string_item);
41 assert_has_no_const_string(string_item);
42 assert_has_valuestring(string_item);
43 assert_has_no_string(string_item);
44}
45
46static void assert_parse_string(const char *string, const char *expected)
47{

Callers 1

assert_parse_stringFunction · 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…