gh#164: releasing a model’s handles keeps its registrations¶
Tests › tests/unit/inference/adapter_manager_test.cpp
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)
REQUIRE(mgr.list_adapters().size() == 2)observeslist_adaptersCHECK(mock_adapter::free_calls == 2)not attributedCHECK(mgr.state("eng") == entropic::AdapterState::COLD)observesstateCHECK(mgr.state("qa") == entropic::AdapterState::COLD)observesstateCHECK(mgr.active_adapter().empty())observesactive_adapterREQUIRE(mgr.list_adapters().size() == 2)observeslist_adaptersCHECK(mgr.info("eng").path == "/path/eng-lora.gguf")observesinfoCHECK(mgr.info("eng").scale == 0.75f)observesinfoCHECK(ok)observesloadviaokCHECK(mgr.state("eng") == entropic::AdapterState::WARM)observesstateCHECK(mock_adapter::init_calls == 3)not attributedCHECK(mgr.list_adapters().size() == 2)observeslist_adaptersCHECK(mgr.state("eng") == entropic::AdapterState::COLD)observesstateCHECK(mgr.state("other") == entropic::AdapterState::WARM)observesstateCHECK(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_2What 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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-INFER-023 inferred