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

Function hit_of

tests/test_store_impact.c:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
50 for (int i = 0; i < cbm_impact_walk_count(w); i++) {
51 if (hits[i].id == id) {
52 return &hits[i];
53 }
54 }
55 return NULL;
56}
57
58TEST(impact_walk_follows_a_chain_to_its_end) {
59 /* n30 calls n29 calls ... calls n0. No depth bound: a change to n0 reaches

Callers 1

Calls 2

cbm_impact_walk_hitsFunction · 0.85
cbm_impact_walk_countFunction · 0.85

Tested by

no test coverage detected