misc accessors: pause / context_usage / idle / project_dir

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

What it checks (8)

  1. REQUIRE(used >= 0) not attributed
  2. REQUIRE(max_tok == 4096) not attributed
  3. REQUIRE(engine.seconds_since_last_activity() == 0) observes seconds_since_last_activity
  4. REQUIRE(engine.seconds_since_last_activity() >= 0) observes seconds_since_last_activity
  5. REQUIRE_NOTHROW(engine.run(make_messages())) observes run
  6. REQUIRE(hooks.process_directives != nullptr) observes build_directive_hooks via hooks
  7. REQUIRE(hooks.user_data == &engine) observes build_directive_hooks via hooks
  8. REQUIRE(hooks.process_directives(bd_ctx, bd_list, hooks.user_data) .stop_processing) observes build_directive_hooks via hooks

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

misc accessors: pause / context_usage / idle / project_dir→make_mock_interface→pause→cancel_pause→context_usage→make_messages→REQUIRE→seconds_since_last_activity→run→set_project_dir→set_session_logger→build_directive_hooks

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.

misc accessors: pause / context_usage / idle / project_dir · 8 checkscontext_usageREQ-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.