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

Function ss_golden

tests/test_store_scope.c:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 &&
99 ss_hit(&h[0],id->root,0,0,NULL,SS_PROJECT ".root") &&
100 ss_hit(&h[1],id->a,1,id->root,"CALLS",SS_PROJECT ".a") &&
101 ss_hit(&h[2],id->z,1,id->root,"USAGE",SS_PROJECT ".z") &&
102 ss_hit(&h[3],id->top,2,id->z,"USAGE",SS_PROJECT ".top");
103 return ok && (!lifted || (ss_hit(&h[4],id->island,3,0,NULL,SS_PROJECT ".island") &&
104 ss_hit(&h[5],id->tail,4,id->island,"CALLS",SS_PROJECT ".tail")));
105}
106static bool ss_normal_walk(cbm_store_t *s,const ss_ids_t *id) {
107 cbm_impact_walk_t *w=NULL;
108 bool ok=cbm_impact_walk_open(s,&ss_policy,&w)==CBM_STORE_OK &&

Callers 2

ss_normal_walkFunction · 0.85
test_store_scope.cFile · 0.85

Calls 3

cbm_impact_walk_countFunction · 0.85
cbm_impact_walk_hitsFunction · 0.85
ss_hitFunction · 0.85

Tested by

no test coverage detected