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

Function make_fp_props

tests/test_simhash.c:552–556  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

550
551/* Helper: build a fingerprint hex string for a properties_json. */
552static void make_fp_props(char *buf, int bufsize, const cbm_minhash_t *fp) {
553 char hex[CBM_MINHASH_HEX_LEN + 1];
554 cbm_minhash_to_hex(fp, hex, sizeof(hex));
555 snprintf(buf, bufsize, "{\"fp\":\"%s\"}", hex);
556}
557
558TEST(pass_similarity_creates_edges) {
559 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