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

Function ss_hit

tests/test_store_scope.c:92–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 cbm_impact_walk_hit(w,previously_reached)==NULL && !cbm_impact_walk_reached(w,previously_reached);
91}
92static bool ss_hit(const cbm_impact_hit_t *h,int64_t id,int hop,int64_t via,const char *edge,const char *qn) {
93 return h && h->id==id && h->hop==hop && h->via_id==via &&
94 (edge ? ss_eq(h->via_edge,edge) : h->via_edge==NULL) && ss_eq(h->qualified_name,qn) && ss_eq(h->label,"Function");
95}
96static bool ss_golden(cbm_impact_walk_t *w,const ss_ids_t *id,bool lifted) {
97 int count=cbm_impact_walk_count(w); const cbm_impact_hit_t *h=cbm_impact_walk_hits(w);
98 bool ok=count==(lifted?6:4) && h &&

Callers 1

ss_goldenFunction · 0.85

Calls 1

ss_eqFunction · 0.85

Tested by

no test coverage detected