the GGUF shape read matches what the model really is

Tests › tests/model/test_auto_placement_real.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/model/test_auto_placement_real.cpp:58 · its file's page

What it checks (10)

  1. REQUIRE(shape.known) observes read_gguf_shape via shape
  2. CHECK(shape.block_count == 30) observes read_gguf_shape via shape
  3. CHECK(shape.expert_count > 0) observes read_gguf_shape via shape
  4. REQUIRE(shape.block_bytes > 0) observes read_gguf_shape via shape
  5. CHECK(shape.expert_bytes > 0) observes read_gguf_shape via shape
  6. CHECK(shape.expert_bytes < shape.block_bytes) observes read_gguf_shape via shape
  7. CHECK(share > 0.5) not attributed
  8. REQUIRE_FALSE(ec) not attributed
  9. CHECK(summed <= file_bytes) not attributed
  10. CHECK(summed > file_bytes * 9 / 10) 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

the GGUF shape read matches what the model really is→model_file→WHEN→read_gguf_shape→REQUIRE

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.

the GGUF shape read matches what the model really is · 10 checksWHENfailure_detailREQ-API-012 · inferredread_gguf_shapeREQ-INFER-019 · inferred
Also reaches 2 requirements

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