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

Function pf_builtin_control

tests/test_pipeline_frozen.c:537–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535 return ok;
536}
537static bool pf_builtin_control(pf_fixture_t *f) {
538 static const char source[] = "void builtin_sink(void) {}\nTEST(alpha) { builtin_sink(); "
539 "}\nSUITE(core) { builtin_sink(); }\n";
540 static const char config[] = "{\"test_impact\":{\"version\":1,\"tests\":{"
541 "\"presets\":{\"c-cbm\":true}}}}";
542 if (!pf_source_write(f, "builtin.c", source))
543 return false;
544 cbm_pipeline_frozen_t *owner = NULL;
545 bool ok = pf_create(f, config, NULL, &owner) == CBM_PIPELINE_FROZEN_OK && owner &&
546 cbm_pipeline_frozen_build(owner) == CBM_PIPELINE_FROZEN_OK &&
547 pf_builtin_graph(f->db) && pf_ordinary_graph(f->db) &&
548 pf_files_equal(f->control, f->saved);
549 cbm_pipeline_frozen_free(owner);
550 return ok;
551}
552static cbm_pipeline_frozen_status_t pf_build_expected_ok(cbm_pipeline_frozen_t *owner) {
553 cbm_pipeline_frozen_status_t status = cbm_pipeline_frozen_build(owner);
554 if (status != CBM_PIPELINE_FROZEN_OK) {

Callers 1

Calls 7

pf_source_writeFunction · 0.85
pf_createFunction · 0.85
pf_builtin_graphFunction · 0.85
pf_ordinary_graphFunction · 0.85
pf_files_equalFunction · 0.85
cbm_pipeline_frozen_freeFunction · 0.85

Tested by

no test coverage detected