complete_cb receives patch and files_touched

Tests › tests/unit/core/delegation_manager_test.cpp

absent Not in the packaged run: no test report names it.

What this test is for

Why it exists

The test says nothing about why.

tests/unit/core/delegation_manager_test.cpp:711 · its file's page

What it checks (9)

  1. CHECK(cap.success == 1) not attributed
  2. CHECK(cap.id.rfind("d1", 0) == 0) not attributed
  3. CHECK(cap.id != "d1") not attributed
  4. CHECK(cap.tier == "eng") not attributed
  5. CHECK(cap.files.size() == 1) not attributed
  6. CHECK(cap.files[0] == "a.txt") not attributed
  7. CHECK(cap.patch.find("hello") != std::string::npos) not attributed
  8. CHECK(cap.patch.find("world") != std::string::npos) not attributed
  9. CHECK(content == "hello\n") not attributed

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

complete_cb receives patch and files_touched→make_project→make_mock_tier_res→set_dir_swap→set_delegation_callbacks→execute_delegation

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

complete_cb receives patch and files_touched · 9 checksset_delegation_callbacksREQ-DELEG-002 · inferredexecute_delegationrun_childbuild_child_resultREQ-DELEG-003 · inferredexecute_delegationcheck_delegation_preconditionsfire_start_cbREQ-DELEG-004 · inferredexecute_delegationmint_delegation_idREQ-DELEG-005 · inferredexecute_delegationformat_context_blockREQ-DELEG-006 · inferredexecute_delegation… 3 calls …sanitize_utf8REQ-SAFE-001 · inferred
Also reaches 6 requirements

Its run touches their code; that is reach, not proof.