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

Function open_walk

tests/test_store_impact.c:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38static const char *const CALLS_USAGE[] = {"CALLS", "USAGE"};
39
40static cbm_impact_walk_t *open_walk(cbm_store_t *s, const char *const *types, int count,
41 bool routes) {
42 cbm_impact_policy_t policy = {
43 .project = "test", .edge_types = types, .edge_type_count = count, .follow_routes = routes};
44 cbm_impact_walk_t *w = NULL;
45 return cbm_impact_walk_open(s, &policy, &w) == CBM_STORE_OK ? w : NULL;
46}
47
48static const cbm_impact_hit_t *hit_of(const cbm_impact_walk_t *w, int64_t id) {
49 const cbm_impact_hit_t *hits = cbm_impact_walk_hits(w);

Callers 1

Calls 1

cbm_impact_walk_openFunction · 0.85

Tested by

no test coverage detected