test_the_whole_mbedtls_tree_yields_only_plausible_outputs

Tests › tests/test_cmake_generation.py

skipped Skipped in the packaged run.
no provisioned mbedtls checkout at /home/runner/work/clew/clew/acceptance/runs/2026-10-19-n3/mbedtls/repo (gitignored third-party source); run `.venv/bin/python -m acceptance.matrix --only mbedtls --models claude-haiku-5-5 --out acceptance/runs/2026-10-19-n3 --provision-only` to enable these assertions

What this test is for

Why it exists

THE CHECK THAT CAUGHT IT, kept as a test. One file parsed cleanly and the tree did not: 15 distinct outputs, of which `WORKING_DIRECTORY` and `..` were not files. Asserted over EVERY CMakeLists in the checkout, because a per-file test is what let this through.

Given

  1. repo = _MBEDTLS_REPO
  2. outputs: set[str] = set()
→

When

  1. for f in repo.rglob("CMakeLists.txt"): src = f.read_bytes() for rule in harvest_generation(_tree(src), src).get("generated", []): outputs |= {o["name"] for o in rule["outputs"] if o["name"]}
  2. bad = {o for o in outputs if o.isupper() or o in {".", ".."} or "/" in o}
→

Then

  1. · outputs holds
  2. · bad is false
  3. · outputs contains "error.c"

tests/test_cmake_generation.py:288 · its file's page

What it checks (3)

  1. assert outputs, "precondition: the tree does hold generation rules" not attributed
  2. assert not bad, f"these are not filenames: {sorted(bad)}" not attributed
  3. assert "error.c" in outputs, outputs 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_the_whole_mbedtls_tree_yields_only_plausible_outputs→harvest_generation→_tree

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.

test_the_whole_mbedtls_tree_yields_only_plausible_outputs · 3 checksharvest_generationREQ-DDB-PIPE-012 · inferred
Also reaches 1 requirement

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