SecondaryModelLoader v2.3.10 topup — failure isolation + idempotency

Tests › tests/unit/inference/secondary_model_loader_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/secondary_model_loader_test.cpp:80 · its file's page

What it checks (14)

  1. REQUIRE_FALSE(loader.ensure_loaded("draft", cfg)) observes ensure_loaded
  2. REQUIRE_FALSE(loader.ensure_loaded("draft", cfg)) observes ensure_loaded
  3. REQUIRE(loader.get("draft") == nullptr) observes get
  4. REQUIRE_FALSE(loader.is_loaded("draft")) observes is_loaded
  5. REQUIRE_FALSE(static_cast<bool>(loader.get_shared("draft"))) observes get_shared
  6. REQUIRE(loader.loaded_roles().empty()) observes loaded_roles
  7. REQUIRE_FALSE(loader.ensure_loaded("router", cfg)) observes ensure_loaded
  8. REQUIRE_FALSE(loader.ensure_loaded("thinking", cfg)) observes ensure_loaded
  9. REQUIRE(loader.get("router") == nullptr) observes get
  10. REQUIRE(loader.get("thinking") == nullptr) observes get
  11. REQUIRE_FALSE(loader.release_role("router")) observes release_role
  12. REQUIRE_FALSE(loader.release_role("thinking")) observes release_role
  13. REQUIRE(loader.loaded_roles().empty()) observes loaded_roles
  14. REQUIRE_FALSE(loader.ensure_loaded("draft", cfg)) observes ensure_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→shutdown

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.

SecondaryModelLoader v2.3.10 topup — failure isolation + idempotency · 14 checksshutdownREQ-INFER-002 · inferredensure_loadedREQ-INFER-020 · inferred
Also reaches 2 requirements

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