gh#144: a session switch must not force a full re-prefill

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

What it checks (8)

  1. REQUIRE_FALSE(gguf.empty()) observes test_gguf via gguf
  2. REQUIRE(fs::is_regular_file(gguf)) observes test_gguf via gguf
  3. REQUIRE(backend.load(cfg)) observes load
  4. REQUIRE(backend.activate()) observes activate
  5. REQUIRE_FALSE(switched.empty()) not attributed
  6. CHECK(switched[i] < total_history_tokens) not attributed
  7. REQUIRE(switched.size() >= 4) not attributed
  8. CHECK(late <= early * 2) 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

gh#144: a session switch must not force a full re-prefill→test_gguf→REQUIRE→load→activate→filler→generate→WHEN→last_prefill_tokens→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#144: a session switch must not force a full re-prefill · 8 checksWHENfailure_detailREQ-API-012 · inferredunloadREQ-INFER-002 · inferred
Also reaches 2 requirements

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