test_index_scope_summarises_provenance_and_shape¶
Tests › tests/test_emptiness.py
What this test is for
Why it exists
This is the information gh#21 says an empty result must carry, and which only `status` could produce — a separate call the caller had no reason to make.
Given
- —
When
scope = index_scope(db)
Then
- ✓ scope.source equals "doxygen-guard"
- ✓ scope.reason contains "pre-commit-config"
- ✓ scope.file_count equals 3
- ✓ scope.top_levels equals ("app", "docs")
- ✓ scope.extensions 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:115 · its file's page
What it checks (5)
assert scope.source == "doxygen-guard"observesindex_scopeviascopeassert "pre-commit-config" in scope.reasonobservesindex_scopeviascopeassert scope.file_count == 3observesindex_scopeviascopeassert scope.top_levels == ("app", "docs")observesindex_scopeviascopeassert scope.extensions == (".md", ".py")observesindex_scopeviascope
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