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

Function cjson_minify_should_remove_spaces

tests/minify_tests.c:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static void cjson_minify_should_remove_spaces(void)
59{
60 const char to_minify[] = "{ \"key\":\ttrue\r\n }";
61
62 char* minified = (char*) malloc(sizeof(to_minify));
63 TEST_ASSERT_NOT_NULL(minified);
64 strcpy(minified, to_minify);
65
66 cJSON_Minify(minified);
67 TEST_ASSERT_EQUAL_STRING("{\"key\":true}", minified);
68
69 free(minified);
70}
71
72static void cjson_minify_should_remove_multiline_comments(void)
73{

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…