| 30 | |
| 31 | |
| 32 | static 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 | |
| 44 | static void cjson_minify_should_remove_single_line_comments(void) |
| 45 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…