Residency snapshot on a default-constructed orchestrator¶
Tests › tests/unit/inference/residency_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/residency_test.cpp:33 · its file's page
What it checks (8)
REQUIRE(j.is_object())observesresidency_snapshot_jsonviajREQUIRE(j.contains("residency"))observesresidency_snapshot_jsonviajREQUIRE(j["residency"].is_array())observesresidency_snapshot_jsonviajREQUIRE(j["residency"].empty())observesresidency_snapshot_jsonviajREQUIRE(j["vram_budget_bytes"].get<size_t>() == 0u)observesresidency_snapshot_jsonviajREQUIRE(j["vram_total_bytes"].get<size_t>() == 0u)observesresidency_snapshot_jsonviajREQUIRE(j["vram_headroom_bytes"].get<size_t>() == 0u)observesresidency_snapshot_jsonviajREQUIRE(j["backend"].get<std::string>() == "unknown")observesresidency_snapshot_jsonviaj
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
Residency snapshot on a default-constructed orchestrator→residency_snapshot_json→REQUIREWhat 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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-INFER-019 inferred