gh#157: the first use loads exactly once, through the gate

Tests › tests/unit/inference/deferred_load_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/deferred_load_test.cpp:162 · its file's page

What it checks (11)

  1. REQUIRE(orch.initialize(config)) observes initialize
  2. CHECK(log.count(ModelOrchestrator::ResidencyEvent::Loaded) == 0) not attributed
  3. CHECK(orch.loaded_models().empty()) observes loaded_models
  4. REQUIRE(model != nullptr) not attributed
  5. CHECK(log.count(ModelOrchestrator::ResidencyEvent::Loaded) == 1) not attributed
  6. REQUIRE_FALSE(log.tiers.empty()) not attributed
  7. CHECK(log.tiers.front() == "lead") not attributed
  8. CHECK(orch.loaded_models().size() == 1) observes loaded_models
  9. CHECK(orch.last_used_tier() == "lead") observes last_used_tier
  10. CHECK(again == model) not attributed
  11. CHECK(log.count( ModelOrchestrator::ResidencyEvent::Loaded) == 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#157: the first use loads exactly once, through the gate→small_model→one_tier→observe→REQUIRE→initialize→loaded_models→WHEN→ensure_model→last_used_tier→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.

gh#157: the first use loads exactly once, through the gate · 11 checksWHENfailure_detailREQ-API-012 · inferredshutdownREQ-INFER-002 · inferredinitializeload_bundled_grammarsload_bundledREQ-INFER-007 · inferredinitializecreate_tier_backendscreate_adapterREQ-INFER-012 · inferredensure_modelREQ-INFER-019 · inferredshutdownREQ-INFER-020 · inferredensure_modelget_modelactivate_and_trackpreload_adapters_for_modelREQ-INFER-023 · inferred
Also reaches 7 requirements

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