gh#163 classify_app_context names the state the config is in

Tests › tests/unit/config/app_context_layering_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/config/app_context_layering_test.cpp:311 · its file's page

What it checks (7)

  1. CHECK(classify_app_context(std::nullopt, std::nullopt, false) == AppContextState::NOT_CONFIGURED) observes classify_app_context
  2. CHECK(classify_app_context(std::nullopt, std::nullopt, true) == AppContextState::DISABLED) observes classify_app_context
  3. CHECK(classify_app_context(std::nullopt, std::optional<std::string>("x"), false) == AppContextState::INLINE) observes classify_app_context
  4. CHECK(classify_app_context(std::filesystem::path("/a.md"), std::nullopt, false) == AppContextState::FROM_PATH) observes classify_app_context
  5. CHECK(classify_app_context(std::filesystem::path("/a.md"), std::optional<std::string>("x"), true) == AppContextState::DISABLED) observes classify_app_context
  6. CHECK_FALSE(messages[i].empty()) not attributed
  7. CHECK(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_message

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.

gh#163 classify_app_context names the state the config is in · 7 checksclassify_app_contextREQ-TYPE-005 · inferred
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.