gh#165: a conversation can be replaced wholesale¶
Tests › tests/unit/core/session_conversation_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/core/session_conversation_test.cpp:201 · its file's page
What it checks (7)
REQUIRE(engine.message_count_for("repo-a") > 0)observesmessage_count_forREQUIRE(engine.set_session_messages("repo-a", restored))observesset_session_messagesREQUIRE(msgs.size() == 2)observesmessages_forviamsgsCHECK(msgs[0].content == "restored prompt")observesmessages_forviamsgsCHECK(msgs[1].content == "restored turn")observesmessages_forviamsgsREQUIRE(msgs.size() == 2)observesmessages_forviamsgsCHECK(msgs[1].metadata.at("tool_name") == "filesystem.read")observesmessages_forviamsgs
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: a conversation can be replaced wholesale→make_mock_interface→set_active_session→REQUIRE→message_count_for→WHEN→set_session_messages→messages_forWhat 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-LOOP-001 inferred
- REQ-LOOP-010 inferred