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

Function pc_result_case

tests/test_pipeline_conventions.c:507–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505 bool setup, parked, registry, positive, rejected, reload;
506} pc_spill_witness_t;
507static bool pc_result_case(const CBMFileResult *r, const char *name, const char *qn) {
508 if (!r || r->test_declarations_status != CBM_TEST_EXTRACT_OK || !r->has_test_definition_owners)
509 return false;
510 int matches = 0;
511 for (int i = 0; i < r->defs.count; i++)
512 if (pc_text(r->defs.items[i].name, name) && pc_text(r->defs.items[i].qualified_name, qn) &&
513 r->defs.items[i].test_role == CBM_TEST_ROLE_CASE) matches++;
514 return matches == 1;
515}
516/* First file contributes real definitions before the second file's actual
517 * spilled-load boundary fails. Registry and post-failure reload stay real. */
518static pc_spill_witness_t pc_collect_spill_witness(pc_fixture_t *f) {

Callers 1

pc_collect_spill_witnessFunction · 0.85

Calls 1

pc_textFunction · 0.85

Tested by

no test coverage detected