gh#163 a top-level app_context path survives the config layers¶
Tests › tests/unit/config/app_context_layering_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/config/app_context_layering_test.cpp:145 · its file's page
What it checks (18)
REQUIRE(config.app_context.has_value())observeslayeredviaconfigCHECK(config.app_context->string() == "/abs/ctx/CLAUDE.md")observeslayeredviaconfigCHECK_FALSE(config.app_context_disabled)observeslayeredviaconfigCHECK_FALSE(config.app_context_content.has_value())observeslayeredviaconfigREQUIRE(config.app_context.has_value())observeslayeredviaconfigCHECK(config.app_context->string() == "/abs/ctx/CLAUDE.md")observeslayeredviaconfigREQUIRE(config.app_context.has_value())observeslayeredviaconfigCHECK(config.app_context->string() == "/abs/ctx/CLAUDE.md")observeslayeredviaconfigREQUIRE(config.app_context.has_value())observeslayeredviaconfigCHECK(config.app_context->string() == "/abs/project.md")observeslayeredviaconfigCHECK(config.app_context_disabled)observeslayeredviaconfigCHECK_FALSE(config.app_context.has_value())observeslayeredviaconfigREQUIRE(config.app_context_content.has_value())observeslayeredviaconfigCHECK(config.app_context_content->find("Inline") != std::string::npos)observeslayeredviaconfigCHECK(err.empty())observesload_app_contextviaerrCHECK(body.find("Inline") != std::string::npos)not attributedREQUIRE(config.app_context.has_value())observeslayeredviaconfigCHECK(config.app_context->string() == "/abs/ctx/CLAUDE.md")observeslayeredviaconfig
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#163 a top-level app_context path survives the config layers→global→models_block→layered→REQUIRE→project→load_app_contextWhat 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.
Also reaches 11 requirements
Its run touches their code; that is reach, not proof.
- REQ-CFG-001 inferred
- REQ-CFG-002 inferred
- REQ-CFG-003 inferred
- REQ-CFG-005 inferred
- REQ-CFG-006 inferred
- REQ-CFG-007 inferred
- REQ-CFG-008 inferred
- REQ-DELEG-005 inferred
- REQ-MCP-021 inferred
- REQ-MCP-023 inferred
- REQ-TYPE-005 inferred