| 400 | } |
| 401 | |
| 402 | static bool pc_cpp_files(pc_fixture_t *f) { |
| 403 | char old[1024]; |
| 404 | return pc_path(old, sizeof(old), f->repo, "unit.c") && cbm_unlink(old) == 0 && |
| 405 | pc_write(f->config, pc_cpp_config) && |
| 406 | pc_source_write(f, "engine.h", "struct Engine { void work() {} };\n") && |
| 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) && |
no test coverage detected