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

Function sp_calls

tests/test_spawns.c:276–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276static int sp_calls(sp_proj_t *p, const char *caller, const char *callee) {
277 return sp_count(p,
278 "SELECT COUNT(*) FROM edges e JOIN nodes s ON s.id=e.source_id "
279 "JOIN nodes t ON t.id=e.target_id WHERE e.project=?1 AND e.type='CALLS' "
280 "AND s.name=?2 AND t.name=?3",
281 caller, callee);
282}
283
284/* Every SPAWNS edge as "caller>program|api" lines, sorted, into `out`. */
285static bool sp_edge_set(sp_proj_t *p, char *out, size_t n) {

Callers 1

test_spawns.cFile · 0.85

Calls 1

sp_countFunction · 0.85

Tested by

no test coverage detected