queue capacity / cap mutation / clear / observer / state slot

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:2245 · its file's page

What it checks (12)

  1. REQUIRE(engine.queue_user_message("a")) observes queue_user_message
  2. REQUIRE(engine.queue_user_message("b")) observes queue_user_message
  3. REQUIRE_FALSE(engine.queue_user_message("c")) observes queue_user_message
  4. REQUIRE(engine.user_message_queue_depth() == 2) observes user_message_queue_depth
  5. REQUIRE(engine.queue_user_message("c")) observes queue_user_message
  6. REQUIRE(engine.user_message_queue_depth() == 0) observes user_message_queue_depth
  7. REQUIRE_FALSE(engine.queue_user_message("d")) observes queue_user_message
  8. REQUIRE(s.fired == 1) not attributed
  9. REQUIRE(s.text == "queued follow-up") not attributed
  10. REQUIRE_FALSE(engine.is_running()) observes is_running
  11. REQUIRE_FALSE(states.empty()) not attributed
  12. REQUIRE(states.back() == static_cast<int>(AgentState::COMPLETE)) 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

queue capacity / cap mutation / clear / observer / state slot→make_mock_interface→REQUIRE→queue_user_message→user_message_queue_depth→set_message_queue_capacity→clear_user_message_queue→set_queue_observer→is_running→set_state_observer→run→make_messages

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.

queue capacity / cap mutation / clear / observer / state slot · 12 checksrunloopexecute_iterationcheck_compactionREQ-COMPACT-001 · inferredrunREQ-COMPACT-002 · inferredrun… 4 calls …execute_pending_pipelineREQ-DELEG-001 · inferredruninit_session_conversationREQ-DELEG-002 · inferredrun… 5 calls …finalize_delegation_resultREQ-DELEG-003 · inferredrun… 4 calls …execute_pending_pipelineREQ-DELEG-004 · inferredrun… 5 calls …resolve_session_rootREQ-DELEG-005 · inferredrun… 5 calls …resolve_resume_delegationREQ-DELEG-006 · inferredrunloopREQ-HOOK-002 · inferredrunREQ-IDEN-001 · inferredrun… 4 calls …try_auto_chainREQ-IDEN-003 · inferredrun… 4 calls …handle_terminal_finish_reasonsREQ-INFER-026 · inferred

and 8 more requirement paths, listed below.

Also reaches 20 requirements

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