| 287 | return ok; |
| 288 | } |
| 289 | static bool pf_branch_graph(pf_fixture_t *f, const char *path) { |
| 290 | cbm_store_t *store = cbm_store_open_path_query(path); |
| 291 | if (!store) |
| 292 | return false; |
| 293 | cbm_git_context_t git = pf_git(f); |
| 294 | git.head_sha = PF_H; |
| 295 | char expected[2048]; |
| 296 | char *qn = cbm_git_context_branch_qn(PF_PROJECT, &git); |
| 297 | bool encoded = qn && cbm_git_context_props_json(&git, expected, sizeof(expected)) > 0; |
| 298 | cbm_node_t *nodes = NULL; |
| 299 | int count = 0; |
| 300 | bool ok = encoded && |
| 301 | cbm_store_find_nodes_by_label(store, PF_PROJECT, "Branch", &nodes, &count) == |
| 302 | CBM_STORE_OK && |
| 303 | count == 1 && pf_text(nodes[0].name, "frozen-branch") && |
| 304 | pf_text(nodes[0].qualified_name, qn) && pf_text(nodes[0].properties_json, expected); |
| 305 | free(qn); |
| 306 | cbm_store_free_nodes(nodes, count); |
| 307 | cbm_store_close(store); |
| 308 | return ok; |
| 309 | } |
| 310 | static bool pf_feature_control(pf_fixture_t *f) { |
| 311 | cbm_pipeline_frozen_t *owner = NULL; |
| 312 | bool ok = pf_create(f, "{}", NULL, &owner) == CBM_PIPELINE_FROZEN_OK && owner && |
no test coverage detected