test_a_declared_manifest_is_admitted_without_a_key_list

Tests › tests/test_datamodel.py

passed Passed in the packaged run.

What this test is for

Why it exists

gh#42. THE OPERATOR NAMING THE PATH IS THE EVIDENCE. The key-list gate exists because a vendored generator's `examples/` parse identically to a real manifest during a WALK — a concern that does not survive somebody stating the path. On the reporting repository the model is declared in TOML alone, so every one of its 14 shape-matching documents was declined and `dossier` on a real key answered a definitive negative.

Given

  1. repo = tmp_path / "repo"
  2. repo.mkdir()
2 more
  1. manifest = _ingot_manifest(repo)
  2. found = discover(repo, (), declared=manifest)
→

When

  1. —
→

Then

  1. ✓ [k.define_name for k in found.keys] holds
  2. ✓ any("shim_datamodel.toml" in m for m in found.manifests) holds

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) · 4 of 142 steps

… 8 earlier steps

thread startthread startthread startthread startclew/scope.pyclew/scope.pyclew/scope.pyclew/scope.pyother filesother filesother filesother filesopt (line 845)optloop (line 1239)loopopt (line 847)optloop (line 746)loop_first_build_worker9. whole_repo_scope → list9list10. whole_repo_scope → nested_repo_roots10nested_repo_roots11. nested_repo_roots → _nested_repos_under11_nested_repos_under▶ test enters12–14. _nested_repos_under → _warn_unwalkable12_warn_unwalkable +2 more15. nested_repo_roots → _nested_repos_under15_nested_repos_under16. whole_repo_scope → _gitignored_paths16_gitignored_paths

… 126 later steps

2 more

tests/test_datamodel.py:1087 · its file's page

What it checks (2)

  1. assert [k.define_name for k in found.keys], "the declared manifest's keys must be admitted" not attributed
  2. assert any("shim_datamodel.toml" in m for m in found.manifests), found.manifests 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

test_a_declared_manifest_is_admitted_without_a_key_list→_ingot_manifest

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.

Also reaches 4 requirements

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