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

Function pf_build_into

tests/test_pipeline_frozen.c:1642–1653  ·  view source on GitHub ↗

Builds the source tree into `keep` (renamed from the candidate); base may be * NULL. *route receives the route that built it. */

Source from the content-addressed store, hash-verified

1640/* Builds the source tree into `keep` (renamed from the candidate); base may be
1641 * NULL. *route receives the route that built it. */
1642static bool pf_build_into(pf_fixture_t *f, const char *base, const char *keep,
1643 cbm_pipeline_frozen_route_t *route) {
1644 cbm_git_context_t git = pf_git(f);
1645 cbm_pipeline_frozen_inputs_t in = pf_inputs(f, NULL, &git, NULL);
1646 in.base_db_path = base;
1647 cbm_pipeline_frozen_t *owner = NULL;
1648 bool ok = cbm_pipeline_frozen_create(&in, &owner) == CBM_PIPELINE_FROZEN_OK &&
1649 pf_build_expected_ok(owner) == CBM_PIPELINE_FROZEN_OK;
1650 *route = cbm_pipeline_frozen_route(owner);
1651 cbm_pipeline_frozen_free(owner);
1652 return ok && rename(f->db, keep) == 0;
1653}
1654
1655TEST(pipeline_frozen_base_repairs_or_rebuilds_to_the_full_graph) {
1656 ASSERT_EQ(pf_init_status, 0);

Callers 1

Calls 6

pf_gitFunction · 0.85
pf_inputsFunction · 0.85
pf_build_expected_okFunction · 0.85
cbm_pipeline_frozen_freeFunction · 0.85

Tested by

no test coverage detected