Delegation lifecycle

Tests › tests/unit/storage/backend_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/storage/backend_test.cpp:186 · its file's page

What it checks (7)

  1. REQUIRE(ok) observes create_delegation via ok
  2. REQUIRE(del_id.size() == 36) not attributed
  3. REQUIRE(child_id.size() == 36) not attributed
  4. REQUIRE(arr.size() == 1) not attributed
  5. REQUIRE(arr[0]["status"] == "completed") not attributed
  6. REQUIRE(arr[0]["result_summary"] == "Done successfully") not attributed
  7. REQUIRE(arr[0]["status"] == "failed") 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

Delegation lifecycle→create_conversation→WHEN→create_delegation→REQUIRE→complete_delegation→get_delegations

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.

Delegation lifecycle · 7 checksWHENfailure_detailREQ-API-012 · inferredget_delegationsREQ-SAFE-001 · inferredcomplete_delegationexecuteREQ-STOR-002 · inferredcreate_conversationREQ-STOR-003 · inferredcomplete_delegationREQ-STOR-005 · inferred
Also reaches 5 requirements

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