test_an_exclusion_outside_the_repository_is_refused¶
Tests › tests/test_operator_excludes.py
What this test is for
Why it exists
The record is stored REPO-RELATIVE, so a path outside the repo has no honest stored form — and the nearest thing to one (its bare name) would replay as a DIFFERENT exclusion on the next build. It also cannot exclude anything, since nothing outside the repo is indexed. Refused rather than warned about: a warning on a successful build is indistinguishable from success.
Given
root = tmp_path / "repo"_repo(root)
When
_build(root, tmp_path / "clew.db", exclude=[str(tmp_path / "elsewhere")])
Then
- ✓ raises SystemExit
- ✓ raised.value.code equals 1
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) · 25 of 142 steps
… 32 steps between
… 31 steps between
… 38 later steps
4 more
- clew — `main` (clew/cli.py) · 24 of 400 steps
- Build, refresh and check the index · 20 of 153 steps
- Build this wiki from the index · 3 of 400 steps
- `main` (clew/guard/main.py) · 2 of 357 steps
tests/test_operator_excludes.py:258 · its file's page
What it checks (1)
assert raised.value.code == 1, "must be the pipeline's refusal, not argparse's"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_an_exclusion_outside_the_repository_is_refused→_repo→_buildWhat 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.
and 42 more requirement paths, listed below.
Also reaches 55 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CLI-001 inferred
- REQ-DDB-CLI-002 inferred
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-CONFIG-003 inferred
- REQ-DDB-CONFIG-004 inferred
- REQ-DDB-CONFIG-005 inferred
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-CONFIG-007 inferred
- REQ-DDB-CONFIG-009 inferred
- REQ-DDB-GUARD-012 inferred
- REQ-DDB-GUARD-019 inferred
- REQ-DDB-GUARD-024 inferred
- REQ-DDB-INDEX-001 measured
- REQ-DDB-INDEX-002 measured
- REQ-DDB-INDEX-003 inferred
- REQ-DDB-INDEX-004 inferred
- REQ-DDB-INDEX-005 inferred
- REQ-DDB-INDEX-006 inferred
- REQ-DDB-INDEX-007 inferred
- REQ-DDB-INDEX-008 inferred
- REQ-DDB-INDEX-009 inferred
- REQ-DDB-INDEX-010 inferred
- REQ-DDB-INDEX-011 inferred
- REQ-DDB-MCP-001 measured
- REQ-DDB-MCP-004 measured
- REQ-DDB-PIPE-001 inferred
- REQ-DDB-PIPE-003 inferred
- REQ-DDB-PIPE-004 inferred
- REQ-DDB-PIPE-005 inferred
- REQ-DDB-PIPE-006 inferred
- REQ-DDB-PIPE-007 inferred
- REQ-DDB-PIPE-008 inferred
- REQ-DDB-PIPE-009 inferred
- REQ-DDB-PIPE-010 inferred
- REQ-DDB-PIPE-011 inferred
- REQ-DDB-PIPE-012 inferred
- REQ-DDB-PIPE-013 inferred
- REQ-DDB-PIPE-014 inferred
- REQ-DDB-PIPE-015 inferred
- REQ-DDB-QUERY-003 inferred
- REQ-DDB-QUERY-011 inferred
- REQ-DDB-SCHEMA-001 inferred
- REQ-DDB-SCHEMA-002 inferred
- REQ-DDB-SCHEMA-003 inferred
- REQ-DDB-SCHEMA-004 inferred
- REQ-DDB-SCHEMA-005 inferred
- REQ-DDB-SCHEMA-006 inferred
- REQ-DDB-SCHEMA-007 inferred
- REQ-DDB-SCHEMA-009 inferred
- REQ-DDB-SCHEMA-011 inferred
- REQ-DDB-SCHEMA-012 inferred
- REQ-DDB-SCHEMA-013 inferred
- REQ-DDB-SCHEMA-014 inferred
- REQ-DDB-SCHEMA-015 inferred
- REQ-DDB-WIKI-054 inferred