test_external_boundaries_table_always_created¶
Tests › tests/test_r1_richness.py
What this test is for
Why it exists
Even with no registrations at all, the terminus table exists (empty).
Verifies REQ-DDB-SCHEMA-001 REQ-DDB-SCHEMA-002 REQ-DDB-SCHEMA-004
Given
src = tmp_path / "src"src.mkdir()
2 more
(src / "foo.c").write_text("void plain(void) {}\n")db = _make_db(tmp_path, [(1, "plain", 1, 1)], call_edges=[])
When
import_callback_registration_edges(db, tmp_path)conn = sqlite3.connect(str(db))has = conn.execute( "SELECT 1 FROM sqlite_master WHERE type='table' AND name='external_boundaries'", ).fetchone()conn.close()
Then
- ✓ has is not None
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.
clew — `main` (clew/cli.py) · 7 of 400 steps
… 70 earlier steps
… 313 later steps
tests/test_r1_richness.py:671 · its file's page
What it checks (1)
assert has is not Nonenot 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
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.
Requirements it verifies (3)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-SCHEMA-001 | catalog | unknown |
| REQ-DDB-SCHEMA-002 | catalog | unknown |
| REQ-DDB-SCHEMA-004 | catalog | unknown |
Also reaches 8 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-004 inferred
- REQ-DDB-PIPE-003 measured
- REQ-DDB-PIPE-011 measured
- REQ-DDB-PIPE-012 inferred
- REQ-DDB-SCHEMA-003 measured
- REQ-DDB-SCHEMA-007 measured
- REQ-DDB-SCHEMA-012 measured
- REQ-DDB-WIKI-054 inferred