| 407 | pc_source_write(f, "unit.cpp", pc_cpp_source); |
| 408 | } |
| 409 | static 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 | } |
| 423 | TEST(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; |
no test coverage detected