gh#163 classify_app_context names the state the config is in¶
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:311 · its file's page
What it checks (7)
CHECK(classify_app_context(std::nullopt, std::nullopt, false) == AppContextState::NOT_CONFIGURED)observesclassify_app_contextCHECK(classify_app_context(std::nullopt, std::nullopt, true) == AppContextState::DISABLED)observesclassify_app_contextCHECK(classify_app_context(std::nullopt, std::optional<std::string>("x"), false) == AppContextState::INLINE)observesclassify_app_contextCHECK(classify_app_context(std::filesystem::path("/a.md"), std::nullopt, false) == AppContextState::FROM_PATH)observesclassify_app_contextCHECK(classify_app_context(std::filesystem::path("/a.md"), std::optional<std::string>("x"), true) == AppContextState::DISABLED)observesclassify_app_contextCHECK_FALSE(messages[i].empty())not attributedCHECK(messages[i] != messages[j])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
gh#163 classify_app_context names the state the config is in→classify_app_context→app_context_state_messageWhat 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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-TYPE-005 inferred