test_provision_refuses_a_dirty_clew_tree

Tests › tests/test_tool_tree_refusal.py

passed Passed in the packaged run.

What this test is for

Why it exists

BEFORE THE FETCH, because the fetch and the index build are the expensive steps and a dirty tree makes both worthless.

Given

  1. fetched: list[Path] = []
  2. monkeypatch.setattr(provision, "fetch_pinned", lambda _r, repo: fetched.append(repo))
  3. monkeypatch.setattr(runner, "tool_identity", lambda: {"clew_commit": _SHA, "clew_dirty": True})
→

When

  1. provision.provision(load(_MBEDTLS), tmp_path / "mbedtls")
→

Then

  1. ✓ raises provision.ProvisionError
  2. ✓ fetched is false

tests/test_tool_tree_refusal.py:104 · its file's page

What it checks (1)

  1. assert not fetched, "the target was fetched for a clew tree that was going to be refused" 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_provision_refuses_a_dirty_clew_tree→provision

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_provision_refuses_a_dirty_clew_tree · 1 checksprovision… 3 calls …compiled_languagesREQ-DDB-PIPE-012 · inferred
Also reaches 1 requirement

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