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

Function sp_spawns

tests/test_spawns.c:268–274  ·  view source on GitHub ↗

SPAWNS edges from the definition named `caller` to the Process `program`. */

Source from the content-addressed store, hash-verified

266
267/* SPAWNS edges from the definition named `caller` to the Process `program`. */
268static int sp_spawns(sp_proj_t *p, const char *caller, const char *program) {
269 return sp_count(p,
270 "SELECT COUNT(*) FROM edges e JOIN nodes s ON s.id=e.source_id "
271 "JOIN nodes t ON t.id=e.target_id WHERE e.project=?1 AND e.type='SPAWNS' "
272 "AND s.name=?2 AND t.name=?3 AND t.label='Process'",
273 caller, program);
274}
275
276static int sp_calls(sp_proj_t *p, const char *caller, const char *callee) {
277 return sp_count(p,

Callers 1

test_spawns.cFile · 0.85

Calls 1

sp_countFunction · 0.85

Tested by

no test coverage detected