Backend lifecycle transitions

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:127 · its file's page

What it checks (11)

  1. REQUIRE(backend.state() == entropic::ModelState::COLD) not attributed
  2. REQUIRE(ok) observes make_config via ok
  3. REQUIRE(backend.state() == entropic::ModelState::WARM) not attributed
  4. REQUIRE(backend.load_calls == 1) not attributed
  5. REQUIRE(ok) observes make_config via ok
  6. REQUIRE(backend.state() == entropic::ModelState::ACTIVE) not attributed
  7. REQUIRE(backend.activate_calls == 1) not attributed
  8. REQUIRE(backend.state() == entropic::ModelState::WARM) not attributed
  9. REQUIRE(backend.deactivate_calls == 1) not attributed
  10. REQUIRE(backend.state() == entropic::ModelState::COLD) not attributed
  11. REQUIRE(backend.unload_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

Backend lifecycle transitions→REQUIRE→WHEN→make_config

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.

Backend lifecycle transitions · 11 checksWHENfailure_detailREQ-API-012 · inferred
Also reaches 1 requirement

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