v2.13.0: an absent cpu_moe_layers installs no overrides at all¶
Tests › tests/unit/inference/expert_offload_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/expert_offload_test.cpp:214 · its file's page
What it checks (8)
CHECK(cfg.cpu_moe_layers == 0)not attributedCHECK(expert_offload_patterns(cfg.cpu_moe_layers).empty())observesexpert_offload_patternsCHECK(overrides.size() == 0)observessizeCHECK(overrides.data() == nullptr)observesdataCHECK(expert_offload_conflict_reason(cfg).empty())observesexpert_offload_conflict_reasonCHECK(expert_offload_load_refusal(cfg.cpu_moe_layers, 30, 0) .empty())observesexpert_offload_load_refusalCHECK(expert_offload_patterns(0).empty())observesexpert_offload_patternsCHECK(expert_offload_conflict_reason(cfg).empty())observesexpert_offload_conflict_reason
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
v2.13.0: an absent cpu_moe_layers installs no overrides at all→expert_offload_patterns→size→data→expert_offload_conflict_reason→expert_offload_load_refusalWhat 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-CFG-006 inferred
- REQ-INFER-027 inferred