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

Function make_fp_props

tests/test_simhash.c:559–563  ·  view source on GitHub ↗

Helper: build a fingerprint hex string for a properties_json. */

Source from the content-addressed store, hash-verified

557
558/* Helper: build a fingerprint hex string for a properties_json. */
559static void make_fp_props(char *buf, int bufsize, const cbm_minhash_t *fp) {
560 char hex[CBM_MINHASH_HEX_LEN + 1];
561 cbm_minhash_to_hex(fp, hex, sizeof(hex));
562 snprintf(buf, bufsize, "{\"fp\":\"%s\"}", hex);
563}
564
565TEST(pass_similarity_creates_edges) {
566 cbm_minhash_t fp;

Callers 1

test_simhash.cFile · 0.85

Calls 1

cbm_minhash_to_hexFunction · 0.85

Tested by

no test coverage detected