gh#165: the RUNNING session refuses replacement, others do not

Tests › tests/unit/core/session_conversation_test.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/unit/core/session_conversation_test.cpp:242 · its file's page

What it checks (5)

  1. REQUIRE(engine.try_begin_turn("repo-a")) not attributed
  2. CHECK_FALSE(engine.set_session_messages("repo-a", m)) observes set_session_messages
  3. CHECK(engine.set_session_messages("repo-b", m)) observes set_session_messages
  4. CHECK(engine.message_count_for("repo-b") == 1) observes message_count_for
  5. CHECK(engine.set_session_messages("repo-a", m)) observes set_session_messages

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#165: the RUNNING session refuses replacement, others do not→make_mock_interface→set_concurrent_sessions→REQUIRE→WHEN→set_session_messages→message_count_for→end_turn

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#165: the RUNNING session refuses replacement, others do not · 5 checksend_turnREQ-API-009 · inferredWHENfailure_detailREQ-API-012 · inferredset_concurrent_sessionsREQ-LOOP-009 · inferredset_session_messagesREQ-LOOP-010 · inferred
Also reaches 4 requirements

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