MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / snippet_source_has_replacement

Function snippet_source_has_replacement

tests/test_mcp.c:19365–19376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19363}
19364
19365static bool snippet_source_has_replacement(const char *json) {
19366 yyjson_doc *doc = yyjson_read(json, strlen(json), 0);
19367 if (!doc) {
19368 return false;
19369 }
19370 yyjson_val *root = yyjson_doc_get_root(doc);
19371 yyjson_val *source = yyjson_obj_get(root, "source");
19372 const char *source_str = yyjson_get_str(source);
19373 bool found = source_str && strstr(source_str, "\xEF\xBF\xBD");
19374 yyjson_doc_free(doc);
19375 return found;
19376}
19377
19378/* ── TestSnippet_ExactQN ──────────────────────────────────────── */
19379

Callers 1

test_mcp.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected