gh#158: a batch never writes a sequence a session owns¶
Tests › tests/unit/inference/batch_kv_util_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/batch_kv_util_test.cpp:29 · its file's page
What it checks (9)
REQUIRE(slots == 4)observesderive_pool_geometryviaslotsREQUIRE(plan.seq_ids.size() == 3)observesplan_batch_kvviaplanCHECK(id >= slots)observesderive_pool_geometryviaslotsCHECK(plan.seq_ids[0] != plan.seq_ids[1])observesplan_batch_kvviaplanCHECK(plan.seq_ids[1] != plan.seq_ids[2])observesplan_batch_kvviaplanCHECK(plan.seq_ids[0] != plan.seq_ids[2])observesplan_batch_kvviaplanCHECK_FALSE(plan_disturbs_sessions(plan, slots))observesplan_disturbs_sessionsCHECK(plan.seq_ids == std::vector<int>{4, 5, 6})observesplan_batch_kvviaplanCHECK_FALSE(plan_disturbs_sessions(plan, slots))observesplan_disturbs_sessions
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#158: a batch never writes a sequence a session owns→derive_pool_geometry→REQUIRE→WHEN→plan_batch_kv→plan_disturbs_sessionsWhat 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 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-INFER-018 inferred
- REQ-INFER-019 inferred
- REQ-LOOP-009 inferred