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

Function gd_fixture

tests/test_store_graph_digest.c:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 "('mutation_gen','7'),('future','opaque')")==SQLITE_OK;
69}
70static cbm_store_t *gd_fixture(bool reverse, bool meta) {
71 cbm_store_t *s=cbm_store_open_memory();
72 if (s && !gd_seed(cbm_store_get_db(s),reverse,meta)) { cbm_store_close(s);s=NULL; }
73 return s;
74}
75static bool gd_zero(const cbm_store_graph_digest_t *v) {
76 if (v->version || v->rows || v->framed_bytes) return false;
77 for (size_t i=0;i<sizeof(v->sha256);i++) if (v->sha256[i]) return false;

Callers 1

Calls 4

cbm_store_open_memoryFunction · 0.85
gd_seedFunction · 0.85
cbm_store_get_dbFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected