Generation requires ACTIVE state

Tests › tests/unit/inference/backend_lifecycle_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/inference/backend_lifecycle_test.cpp:221 · its file's page

What it checks (9)

  1. REQUIRE_FALSE(result.ok()) observes ok
  2. REQUIRE(result.error_code == ENTROPIC_ERROR_INVALID_STATE) not attributed
  3. REQUIRE(backend.generate_calls == 0) not attributed
  4. REQUIRE(result.ok()) observes ok
  5. REQUIRE(result.content == "mock response") not attributed
  6. REQUIRE(backend.generate_calls == 1) not attributed
  7. REQUIRE(result.ok()) observes ok
  8. REQUIRE(result.content == "2") not attributed
  9. REQUIRE(backend.complete_calls == 1) 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

Generation requires ACTIVE state→make_config→WHEN→ok→REQUIRE

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.

Generation requires ACTIVE state · 9 checksWHENfailure_detailREQ-API-012 · inferred
Also reaches 1 requirement

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