gh#209/#212: a failed turn is rolled out of the session¶
Tests › tests/unit/core/engine_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/core/engine_test.cpp:500 · its file's page
What it checks (5)
CHECK(engine.message_count() == before)observesmessage_countCHECK_FALSE(engine.last_turn_failure().empty())observeslast_turn_failureREQUIRE_FALSE(turn.empty())observeslast_failed_turnviaturnCHECK(turn.front().content == "second question")observeslast_failed_turnviaturnCHECK(turn.size() > 1)observeslast_failed_turnviaturn
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#209/#212: a failed turn is rolled out of the session→make_mock_interface→set_tier_resolution→message_count→WHEN→last_turn_failure→last_failed_turnWhat 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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-IDEN-001 inferred