test_a_macro_only_name_gets_a_dossier¶
Tests › tests/test_macro_query.py
What this test is for
Why it exists
A name that is only a macro gets a dossier instead of nothing.
Given
- —
When
doss = function_dossier(macro_db, "ALLOW")
Then
- ✓ doss is not None
- ✓ doss.kind equals MACRO_KIND
- ✓ [m.file for m in doss.macros] equals ["library/common.h", "programs/app.c"]
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 · 17 of 226 steps
… 17 earlier steps
… 23 steps between
… 4 steps between
… 6 steps between
… 143 later steps
3 more
- Build this wiki from the index · 4 of 400 steps
- clew — `main` (clew/cli.py) · 3 of 400 steps
- `main` (scripts/export_parity.py) · 3 of 203 steps
tests/test_macro_query.py:215 · its file's page
What it checks (3)
assert doss is not Noneobservesfunction_dossierviadossassert doss.kind == MACRO_KINDobservesfunction_dossierviadossassert [m.file for m in doss.macros] == ["library/common.h", "programs/app.c"]observesfunction_dossierviadoss
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.
and 2 more requirement paths, listed below.
Also reaches 14 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-004 measured
- REQ-DDB-PIPE-003 inferred
- REQ-DDB-PIPE-011 inferred
- REQ-DDB-PIPE-012 inferred
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-002 inferred
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-004 measured
- REQ-DDB-QUERY-006 measured
- REQ-DDB-QUERY-009 measured
- REQ-DDB-QUERY-010 measured
- REQ-DDB-QUERY-012 measured
- REQ-DDB-QUERY-013 measured
- REQ-DDB-SCHEMA-011 inferred