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

Function assert_not_parse_string

tests/parse_string.c:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60static void assert_not_parse_string(const char * const string)
61{
62 parse_buffer buffer = { 0, 0, 0, 0, { 0, 0, 0 } };
63 buffer.content = (const unsigned char*)string;
64 buffer.length = strlen(string) + sizeof("");
65 buffer.hooks = global_hooks;
66
67 TEST_ASSERT_FALSE_MESSAGE(parse_string(item, &buffer), "Malformed string should not be accepted.");
68 assert_is_invalid(item);
69}
70
71
72

Calls 1

parse_stringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…