| 267 | return cbm_pipeline_frozen_create(&in, out); |
| 268 | } |
| 269 | static 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 | } |
| 289 | static 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) |
no test coverage detected