gh#209/#212: a failed turn is rolled out of the session

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

What it checks (5)

  1. CHECK(engine.message_count() == before) observes message_count
  2. CHECK_FALSE(engine.last_turn_failure().empty()) observes last_turn_failure
  3. REQUIRE_FALSE(turn.empty()) observes last_failed_turn via turn
  4. CHECK(turn.front().content == "second question") observes last_failed_turn via turn
  5. CHECK(turn.size() > 1) observes last_failed_turn via turn

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_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#209/#212: a failed turn is rolled out of the session · 5 checksWHENfailure_detailREQ-API-012 · inferredset_tier_resolutionREQ-IDEN-001 · inferred
Also reaches 2 requirements

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