test_the_aggregate_is_reachable_from_the_package_surface¶
Tests › tests/test_graph_stats.py
What this test is for
Why it exists
`graph_stats` is exported, and its export is the whole point of gh#7.
Given
- —
When
q.graph_stats(rich_db)
Then
- ✓ q.__all__ contains "graph_stats"
- ✓ q.graph_stats(rich_db).calls.logical_pairs is greater than 0
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.
Look up one name: everything the index holds about it · 2 of 226 steps
… 17 earlier steps
… 56 steps between
… 143 later steps
2 more
- clew — `main` (clew/cli.py) · 2 of 400 steps
- `main` (scripts/export_parity.py) · 2 of 203 steps
tests/test_graph_stats.py:370 · its file's page
What it checks (2)
assert "graph_stats" in q.__all__not attributedassert q.graph_stats(rich_db).calls.logical_pairs > 0observesgraph_stats
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.
Also reaches 6 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-004 measured
- REQ-DDB-MCP-001 measured
- REQ-DDB-PIPE-005 measured
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-008 measured