gh#98: multi-seq batch decodes N sequences together¶
Tests › tests/model/test_gh98_batch.cpp
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)
REQUIRE(backend.load(cfg))observesloadREQUIRE(backend.activate())observesactivateREQUIRE(batch.size() == static_cast<size_t>(kN))observesgenerate_batchviabatchCHECK(batch[i].content.find("GO") != std::string::npos)observesgenerate_batchviabatchCHECK(gen_decodes > 0)observeslast_gen_decode_callsviagen_decodesCHECK(gen_decodes <= params.max_tokens)observeslast_gen_decode_callsviagen_decodesCHECK(batch_prefill < single_full * (kN / 2))observeslast_prefill_tokensviabatch_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→unloadWhat 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 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-INFER-002 inferred
- REQ-INFER-005 inferred