gh#179: workspace_app_context loads a repository’s own file, opt-in¶
Tests › tests/unit/api/workspace_app_context_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/api/workspace_app_context_test.cpp:106 · its file's page
What it checks (15)
REQUIRE(f.rc == ENTROPIC_OK)not attributedREQUIRE(entropic_workspace_create(f.h, "B", b.c_str()) == ENTROPIC_OK)observesentropic_workspace_createREQUIRE(entropic_workspace_create(f.h, "C", c.c_str()) == ENTROPIC_OK)observesentropic_workspace_createREQUIRE(entropic_session_bind_workspace(f.h, "in-b", "B") == ENTROPIC_OK)observesentropic_session_bind_workspaceREQUIRE(entropic_session_bind_workspace(f.h, "in-c", "C") == ENTROPIC_OK)observesentropic_session_bind_workspaceCHECK(has(f.prompt("in-b"), "B-FILE-CTX"))observeshasCHECK_FALSE(has(f.prompt("in-b"), "HANDLE-CTX"))observeshasCHECK(has(f.prompt("in-c"), "HANDLE-CTX"))observeshasCHECK(entropic_workspace_create(f.h, "D", d.c_str()) == ENTROPIC_ERROR_INVALID_ARGUMENT)observesentropic_workspace_createCHECK(has(entropic_last_error(f.h), "outside the workspace root"))observeshasREQUIRE(f.rc == ENTROPIC_OK)not attributedREQUIRE(entropic_workspace_create(f.h, "B", b.c_str()) == ENTROPIC_OK)observesentropic_workspace_createREQUIRE(entropic_session_bind_workspace(f.h, "in-b", "B") == ENTROPIC_OK)observesentropic_session_bind_workspaceCHECK_FALSE(has(f.prompt("in-b"), "B-FILE-CTX"))observeshasCHECK(has(f.prompt("in-b"), "HANDLE-CTX"))observeshas
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#179: workspace_app_context loads a repository's own file, opt-in→REQUIRE→repo→entropic_workspace_create→entropic_workspace_create→entropic_session_bind_workspace→entropic_session_bind_workspace→has→prompt→entropic_last_error→entropic_last_errorWhat 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 13 more requirement paths, listed below.
Also reaches 25 requirements
Its run touches their code; that is reach, not proof.
- REQ-ABI-001 inferred
- REQ-ABI-002 inferred
- REQ-API-003 inferred
- REQ-API-005 inferred
- REQ-API-007 inferred
- REQ-BRIDGE-001 inferred
- REQ-CFG-008 inferred
- REQ-DELEG-006 inferred
- REQ-HOOK-001 inferred
- REQ-MCP-001 inferred
- REQ-MCP-003 inferred
- REQ-MCP-004 inferred
- REQ-MCP-005 inferred
- REQ-MCP-006 inferred
- REQ-MCP-007 inferred
- REQ-MCP-011 inferred
- REQ-MCP-013 inferred
- REQ-MCP-021 inferred
- REQ-MCP-022 inferred
- REQ-MCP-023 inferred
- REQ-MCP-024 inferred
- REQ-MCP-025 inferred
- REQ-MCP-026 inferred
- REQ-MCP-027 inferred
- REQ-TYPE-005 inferred