gh#163 the three app_context no-body states are distinguishable¶
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:257 · its file's page
What it checks (10)
CHECK_FALSE(absent.empty())observescapture_prompt_logviaabsentCHECK_FALSE(disabled.empty())observescapture_prompt_logviadisabledCHECK(absent != disabled)observescapture_prompt_logviaabsentCHECK(absent.find("not configured") != std::string::npos)observescapture_prompt_logviaabsentCHECK(disabled.find("false") != std::string::npos)observescapture_prompt_logviadisabledCHECK_FALSE(err.empty())observesload_app_contextviaerrCHECK(body.empty())not attributedCHECK(log.find("rejected") != std::string::npos)observescapture_prompt_logvialogCHECK(log.find(path.string()) != std::string::npos)observescapture_prompt_logvialogCHECK(log.find("not configured") == std::string::npos)observescapture_prompt_logvialog
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_fileWhat 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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-TYPE-001 inferred
- REQ-TYPE-005 inferred