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

Function pc_cpp_graph

tests/test_pipeline_conventions.c:409–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407 pc_source_write(f, "unit.cpp", pc_cpp_source);
408}
409static bool pc_cpp_graph(const char *db) {
410 cbm_store_t *s = cbm_store_open_path_query(db); cbm_node_t owner = {0}, *nodes = NULL; int count = 0;
411 bool ok = s && pc_node(s, PC_PROJECT ".unit.CHECK_alpha", "CHECK_alpha", "unit.cpp", "case", &owner) &&
412 cbm_store_find_nodes_by_file(s, PC_PROJECT, "engine.h", &nodes, &count) == CBM_STORE_OK;
413 int matches = 0; int64_t target = 0;
414 if (ok) for (int i = 0; i < count; i++) {
415 if (pc_text(nodes[i].name, "work") && pc_text(nodes[i].label, "Method") &&
416 pc_text(nodes[i].qualified_name, PC_PROJECT ".engine.Engine.work")) {
417 matches++; target = nodes[i].id;
418 }
419 }
420 ok = ok && matches == 1 && pc_call(s, owner.id, target);
421 cbm_node_free_fields(&owner); cbm_store_free_nodes(nodes, count); cbm_store_close(s); return ok;
422}
423TEST(pipeline_conventions_disabled_required_parallel_crosswalk_preserves_generation) {
424 ASSERT_EQ(pc_init_status, 0);
425 pc_env_t env; pc_fixture_t f = {0}; pc_snapshot_t snapshot;

Callers 1

Calls 8

pc_nodeFunction · 0.85
pc_textFunction · 0.85
pc_callFunction · 0.85
cbm_node_free_fieldsFunction · 0.85
cbm_store_free_nodesFunction · 0.85
cbm_store_closeFunction · 0.85

Tested by

no test coverage detected