v2.13.0: the override array is a valid, owning C contract

Tests › tests/unit/inference/expert_offload_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/expert_offload_test.cpp:158 · its file's page

What it checks (7)

  1. REQUIRE(overrides.size() == 4) observes size
  2. REQUIRE(overrides.data() != nullptr) observes data
  3. CHECK(std::string(overrides.data()[i].pattern) == expert_block_pattern(i)) observes data
  4. CHECK(overrides.data()[i].buft == ggml_backend_cpu_buffer_type()) observes data
  5. CHECK(overrides.data()[4].pattern == nullptr) observes data
  6. CHECK(overrides.data()[i].pattern == overrides.patterns()[i].c_str()) observes data
  7. CHECK(std::string(captured[i]) == expert_block_pattern(static_cast<int>(i))) observes expert_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→patterns

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.

v2.13.0: the override array is a valid, owning C contract · 7 checksdataREQ-INFER-027 · inferred
Also reaches 1 requirement

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