v2.13.0: the override array is a valid, owning C contract¶
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:158 · its file's page
What it checks (7)
REQUIRE(overrides.size() == 4)observessizeREQUIRE(overrides.data() != nullptr)observesdataCHECK(std::string(overrides.data()[i].pattern) == expert_block_pattern(i))observesdataCHECK(overrides.data()[i].buft == ggml_backend_cpu_buffer_type())observesdataCHECK(overrides.data()[4].pattern == nullptr)observesdataCHECK(overrides.data()[i].pattern == overrides.patterns()[i].c_str())observesdataCHECK(std::string(captured[i]) == expert_block_pattern(static_cast<int>(i)))observesexpert_block_pattern
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: the override array is a valid, owning C contract→REQUIRE→size→data→expert_block_pattern→patternsWhat 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-027 inferred