gh#98: multi-seq batch decodes N sequences together

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

What it checks (7)

  1. REQUIRE(backend.load(cfg)) observes load
  2. REQUIRE(backend.activate()) observes activate
  3. REQUIRE(batch.size() == static_cast<size_t>(kN)) observes generate_batch via batch
  4. CHECK(batch[i].content.find("GO") != std::string::npos) observes generate_batch via batch
  5. CHECK(gen_decodes > 0) observes last_gen_decode_calls via gen_decodes
  6. CHECK(gen_decodes <= params.max_tokens) observes last_gen_decode_calls via gen_decodes
  7. CHECK(batch_prefill < single_full * (kN / 2)) observes last_prefill_tokens via batch_prefill

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

gh#98: multi-seq batch decodes N sequences together→model_path→REQUIRE→load→activate→same_prefix_requests→forced_grammar→WHEN→generate→last_prefill_tokens→generate_batch→last_gen_decode_calls→deactivate→unload

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.

gh#98: multi-seq batch decodes N sequences together · 7 checksWHENfailure_detailREQ-API-012 · inferredunloadREQ-INFER-002 · inferredgenerateREQ-INFER-005 · inferred
Also reaches 3 requirements

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