test_a_manifest_may_be_stated_inline¶
Tests › tests/test_buildoptions.py
What this test is for
Why it exists
THE REVERSAL. Before this, an agent that wanted to declare accessor patterns had to Write a YAML file somewhere — impossible inside a third-party repo it must leave byte-identical, and untracked (or `git clean`ed) anywhere else. The document is passed through as the mapping every loader already accepts for the declaration route, so no file exists at any point.
Verifies REQ-DDB-CONFIG-008
Given
args = _args()
When
applied = bo.apply_options( args, {"shared_key_patterns": {"writers": [{"name_prefix": "Store_Set"}]}}, Path("/repo"), )
Then
- ✓ applied equals ["shared_key_patterns"]
- ✓ args.shared_key_patterns equals {"writers": [{"name_prefix": "Store_Set"}]}
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 2 of 142 steps
… 123 earlier steps
… 13 later steps
2 more
- clew — `main` (clew/cli.py) · 2 of 400 steps
- Build this wiki from the index · 1 of 400 steps
tests/test_buildoptions.py:248 · its file's page
What it checks (2)
assert applied == ["shared_key_patterns"]observesapply_optionsviaappliedassert args.shared_key_patterns == {"writers": [{"name_prefix": "Store_Set"}]}observes_argsviaargs
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
test_a_manifest_may_be_stated_inline→_args→apply_optionsWhat 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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-CONFIG-008 | catalog | unknown |