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

Function cjson_minify_should_not_overflow_buffer

tests/minify_tests.c:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31
32static void cjson_minify_should_not_overflow_buffer(void)
33{
34 char unclosed_multiline_comment[] = "/* bla";
35 char pending_escape[] = "\"\\";
36
37 cJSON_Minify(unclosed_multiline_comment);
38 TEST_ASSERT_EQUAL_STRING("", unclosed_multiline_comment);
39
40 cJSON_Minify(pending_escape);
41 TEST_ASSERT_EQUAL_STRING("\"\\", pending_escape);
42}
43
44static void cjson_minify_should_remove_single_line_comments(void)
45{

Callers

nothing calls this directly

Calls 1

cJSON_MinifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…