test_extension_certainty_reads_the_uncapped_list¶
Tests › tests/test_emptiness.py
What this test is for
Why it exists
`IndexScope.extensions` is TRUNCATED for display. Deriving "no `.c` file is indexed" from a truncated list would manufacture exactly the false certainty this change removes, so the two accessors are separate and this pins that they are.
Given
- —
When
index_scope(db, cap=1)indexed_extensions(db)
Then
- ✓ index_scope(db, cap=1).extensions equals (".md",)
- ✓ indexed_extensions(db) equals (".md", ".py")
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
… 251 earlier steps
… 138 later steps
1 more
- `main` (scripts/export_parity.py) · 7 of 203 steps
tests/test_emptiness.py:212 · its file's page
What it checks (2)
assert index_scope(db, cap=1).extensions == (".md",)observesindex_scopeassert indexed_extensions(db) == (".md", ".py")observesindexed_extensions
Where the product reaches it
main→query_main→_payload→export_search→corpus_payload→_symbol_corpus→search_emptiness→index_scope(flow)
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.
Also reaches 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-007 measured