gh#163 the three app_context no-body states are distinguishable

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:257 · its file's page

What it checks (10)

  1. CHECK_FALSE(absent.empty()) observes capture_prompt_log via absent
  2. CHECK_FALSE(disabled.empty()) observes capture_prompt_log via disabled
  3. CHECK(absent != disabled) observes capture_prompt_log via absent
  4. CHECK(absent.find("not configured") != std::string::npos) observes capture_prompt_log via absent
  5. CHECK(disabled.find("false") != std::string::npos) observes capture_prompt_log via disabled
  6. CHECK_FALSE(err.empty()) observes load_app_context via err
  7. CHECK(body.empty()) not attributed
  8. CHECK(log.find("rejected") != std::string::npos) observes capture_prompt_log via log
  9. CHECK(log.find(path.string()) != std::string::npos) observes capture_prompt_log via log
  10. CHECK(log.find("not configured") == std::string::npos) observes capture_prompt_log via log

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 the three app_context no-body states are distinguishable→capture_prompt_log→load_app_context→write_file

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 the three app_context no-body states are distinguishable · 10 checkscapture_prompt_loggetREQ-TYPE-001 · inferredload_app_contextREQ-TYPE-005 · inferred
Also reaches 2 requirements

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