SecondaryModelLoader v2.3.10 topup — failure isolation + idempotency¶
Tests › tests/unit/inference/secondary_model_loader_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/secondary_model_loader_test.cpp:80 · its file's page
What it checks (14)
REQUIRE_FALSE(loader.ensure_loaded("draft", cfg))observesensure_loadedREQUIRE_FALSE(loader.ensure_loaded("draft", cfg))observesensure_loadedREQUIRE(loader.get("draft") == nullptr)observesgetREQUIRE_FALSE(loader.is_loaded("draft"))observesis_loadedREQUIRE_FALSE(static_cast<bool>(loader.get_shared("draft")))observesget_sharedREQUIRE(loader.loaded_roles().empty())observesloaded_rolesREQUIRE_FALSE(loader.ensure_loaded("router", cfg))observesensure_loadedREQUIRE_FALSE(loader.ensure_loaded("thinking", cfg))observesensure_loadedREQUIRE(loader.get("router") == nullptr)observesgetREQUIRE(loader.get("thinking") == nullptr)observesgetREQUIRE_FALSE(loader.release_role("router"))observesrelease_roleREQUIRE_FALSE(loader.release_role("thinking"))observesrelease_roleREQUIRE(loader.loaded_roles().empty())observesloaded_rolesREQUIRE_FALSE(loader.ensure_loaded("draft", cfg))observesensure_loaded
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
SecondaryModelLoader v2.3.10 topup — failure isolation + idempotency→ensure_loaded→REQUIRE→get→is_loaded→get_shared→loaded_roles→release_role→shutdownWhat 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-INFER-002 inferred
- REQ-INFER-020 inferred