gh#157: the first use loads exactly once, through the gate¶
Tests › tests/unit/inference/deferred_load_test.cpp
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)
REQUIRE(orch.initialize(config))observesinitializeCHECK(log.count(ModelOrchestrator::ResidencyEvent::Loaded) == 0)not attributedCHECK(orch.loaded_models().empty())observesloaded_modelsREQUIRE(model != nullptr)not attributedCHECK(log.count(ModelOrchestrator::ResidencyEvent::Loaded) == 1)not attributedREQUIRE_FALSE(log.tiers.empty())not attributedCHECK(log.tiers.front() == "lead")not attributedCHECK(orch.loaded_models().size() == 1)observesloaded_modelsCHECK(orch.last_used_tier() == "lead")observeslast_used_tierCHECK(again == model)not attributedCHECK(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→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 7 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-INFER-002 inferred
- REQ-INFER-007 inferred
- REQ-INFER-012 inferred
- REQ-INFER-019 inferred
- REQ-INFER-020 inferred
- REQ-INFER-023 inferred