test_thread_apis_empty_on_threadless_firmware¶
Tests › tests/test_query.py
What this test is for
Why it exists
The fixture spawns no threads → an empty roster and an empty thread_of (the populated cases are covered by the unit tier).
Verifies REQ-DDB-QUERY-002
Given
- —
When
roster = q.thread_roster(rich_db)q.thread_of(rich_db, "sensor_poll")
Then
- ✓ roster.threads equals ()
- ✓ roster.rows equals 0
- ✓ roster.origin.total equals 0
- ✓ roster.row_meaning does not contain "predates the thread layer"
- ✓ q.thread_of(rich_db, "sensor_poll") equals []
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) · 9 of 400 steps
… 215 earlier steps
… 141 steps between
… 21 later steps
2 more
- `main` (scripts/export_parity.py) · 9 of 203 steps
- Look up one name: everything the index holds about it · 1 of 226 steps
tests/test_query.py:570 · its file's page
What it checks (5)
assert roster.threads == ()observesthread_rosterviarosterassert roster.rows == 0observesthread_rosterviarosterassert roster.origin.total == 0observesthread_rosterviarosterassert "predates the thread layer" not in roster.row_meaningobservesthread_rosterviarosterassert q.thread_of(rich_db, "sensor_poll") == []observesthread_of
Where the product reaches it
main→query_main→_payload→export_search→corpus_payload→thread_roster(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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-QUERY-002 | catalog | unknown |
Also reaches 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-004 measured
- REQ-DDB-QUERY-011 measured