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

Function pf_call

tests/test_pipeline_frozen.c:198–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 pf_text(out->name, name) && pf_text(out->file_path, file) && pf_role(out, role);
197}
198static bool pf_call(cbm_store_t *store, int64_t from, int64_t to) {
199 cbm_edge_t *edges = NULL;
200 int count = 0;
201 bool read =
202 cbm_store_find_edges_by_source_type(store, from, "CALLS", &edges, &count) == CBM_STORE_OK;
203 bool found = false;
204 if (read)
205 for (int i = 0; i < count; ++i)
206 if (edges[i].source_id == from && edges[i].target_id == to &&
207 pf_text(edges[i].type, "CALLS"))
208 found = true;
209 cbm_store_free_edges(edges, count);
210 return read && found;
211}
212static bool pf_ordinary_graph(const char *path) {
213 cbm_store_t *store = cbm_store_open_path_query(path);
214 if (!store)

Callers 3

pf_ordinary_graphFunction · 0.85
pf_fixture_graphFunction · 0.85
pf_builtin_graphFunction · 0.85

Calls 3

pf_textFunction · 0.85
cbm_store_free_edgesFunction · 0.85

Tested by

no test coverage detected