gh#164: releasing a model’s handles keeps its registrations

Tests › tests/unit/inference/adapter_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/inference/adapter_manager_test.cpp:450 · its file's page

What it checks (15)

  1. REQUIRE(mgr.list_adapters().size() == 2) observes list_adapters
  2. CHECK(mock_adapter::free_calls == 2) not attributed
  3. CHECK(mgr.state("eng") == entropic::AdapterState::COLD) observes state
  4. CHECK(mgr.state("qa") == entropic::AdapterState::COLD) observes state
  5. CHECK(mgr.active_adapter().empty()) observes active_adapter
  6. REQUIRE(mgr.list_adapters().size() == 2) observes list_adapters
  7. CHECK(mgr.info("eng").path == "/path/eng-lora.gguf") observes info
  8. CHECK(mgr.info("eng").scale == 0.75f) observes info
  9. CHECK(ok) observes load via ok
  10. CHECK(mgr.state("eng") == entropic::AdapterState::WARM) observes state
  11. CHECK(mock_adapter::init_calls == 3) not attributed
  12. CHECK(mgr.list_adapters().size() == 2) observes list_adapters
  13. CHECK(mgr.state("eng") == entropic::AdapterState::COLD) observes state
  14. CHECK(mgr.state("other") == entropic::AdapterState::WARM) observes state
  15. CHECK(mock_adapter::free_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

gh#164: releasing a model's handles keeps its registrations→reset→load→fake_model→activate→fake_ctx→REQUIRE→list_adapters→WHEN→release_handles_for_model→state→active_adapter→info→fake_model_2

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.

gh#164: releasing a model's handles keeps its registrations · 15 checksWHENfailure_detailREQ-API-012 · inferredloadREQ-INFER-023 · inferred
Also reaches 2 requirements

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