MCPcopy Create free account
hub / github.com/acl-dev/acl / cjson_test

Function cjson_test

lib_acl_cpp/samples/benchmark/json/main.cpp:63–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62#ifdef HAS_CJSON
63static int cjson_test(const acl::string& in, int count) {
64 int i;
65
66 for (i = 0; i < count; i++) {
67 cJSON* json = cJSON_Parse(in.c_str());
68 if (json) {
69 cJSON_Delete(json);
70 } else {
71 printf("cJSON_Parse parse error\r\n");
72 break;
73 }
74 }
75
76 return i;
77}
78#endif
79
80#ifdef HAS_RAPIDJSON

Callers 1

mainFunction · 0.85

Calls 3

cJSON_ParseFunction · 0.85
cJSON_DeleteFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…