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

Function gd_cancel

tests/test_store_graph_digest.c:116–120  ·  view source on GitHub ↗

Pure callback, including cancellation: only caller-owned scalar state. */

Source from the content-addressed store, hash-verified

114typedef struct { uint64_t calls,trip; bool armed,stop; } gd_cancel_t;
115/* Pure callback, including cancellation: only caller-owned scalar state. */
116static bool gd_cancel(void *opaque) {
117 gd_cancel_t *c=opaque;
118 if (c->armed && c->calls<UINT64_MAX) c->calls++;
119 return c->stop || (c->armed && c->trip && c->calls>=c->trip);
120}
121
122TEST(store_graph_digest_independent_canonical_golden) {
123 cbm_store_t *s=gd_fixture(false,false); cbm_store_graph_digest_t out={0};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected