misc accessors: pause / context_usage / idle / project_dir¶
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:2362 · its file's page
What it checks (8)
REQUIRE(used >= 0)not attributedREQUIRE(max_tok == 4096)not attributedREQUIRE(engine.seconds_since_last_activity() == 0)observesseconds_since_last_activityREQUIRE(engine.seconds_since_last_activity() >= 0)observesseconds_since_last_activityREQUIRE_NOTHROW(engine.run(make_messages()))observesrunREQUIRE(hooks.process_directives != nullptr)observesbuild_directive_hooksviahooksREQUIRE(hooks.user_data == &engine)observesbuild_directive_hooksviahooksREQUIRE(hooks.process_directives(bd_ctx, bd_list, hooks.user_data) .stop_processing)observesbuild_directive_hooksviahooks
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_hooksWhat 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.
and 8 more requirement paths, listed below.
Also reaches 20 requirements
Its run touches their code; that is reach, not proof.
- REQ-COMPACT-001 inferred
- REQ-COMPACT-002 inferred
- REQ-DELEG-001 inferred
- REQ-DELEG-002 inferred
- REQ-DELEG-003 inferred
- REQ-DELEG-004 inferred
- REQ-DELEG-005 inferred
- REQ-DELEG-006 inferred
- REQ-HOOK-002 inferred
- REQ-IDEN-001 inferred
- REQ-IDEN-003 inferred
- REQ-INFER-026 inferred
- REQ-LOOP-001 inferred
- REQ-LOOP-002 inferred
- REQ-LOOP-003 inferred
- REQ-LOOP-004 inferred
- REQ-LOOP-005 inferred
- REQ-LOOP-006 inferred
- REQ-LOOP-007 inferred
- REQ-SAFE-001 inferred