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

Function pf_fixture_graph

tests/test_pipeline_frozen.c:269–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 return cbm_pipeline_frozen_create(&in, out);
268}
269static bool pf_fixture_graph(const char *path, bool after) {
270 cbm_store_t *store = cbm_store_open_path_query(path);
271 if (!store)
272 return false;
273 cbm_node_t a = {0}, b = {0}, c = {0}, d = {0};
274 bool ok =
275 pf_node(store, after ? PF_PROJECT ".unit.CHECK_after" : PF_PROJECT ".unit.CHECK_before",
276 after ? "CHECK_after" : "CHECK_before", "unit.pfsource", "case", &a) &&
277 pf_node(store, PF_PROJECT ".unit.GROUP_group", "GROUP_group", "unit.pfsource", "suite",
278 &b) &&
279 pf_node(store, PF_PROJECT ".unit.case_sink", "case_sink", "unit.pfsource", NULL, &c) &&
280 pf_node(store, PF_PROJECT ".unit.suite_sink", "suite_sink", "unit.pfsource", NULL, &d) &&
281 pf_call(store, a.id, c.id) && pf_call(store, b.id, d.id);
282 cbm_node_free_fields(&a);
283 cbm_node_free_fields(&b);
284 cbm_node_free_fields(&c);
285 cbm_node_free_fields(&d);
286 cbm_store_close(store);
287 return ok;
288}
289static bool pf_branch_graph(pf_fixture_t *f, const char *path) {
290 cbm_store_t *store = cbm_store_open_path_query(path);
291 if (!store)

Callers 1

Calls 5

pf_nodeFunction · 0.85
pf_callFunction · 0.85
cbm_node_free_fieldsFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected