test_a_c_function_names_the_header_that_declares_it¶
Tests › tests/test_declared_at.py
What this test is for
Why it exists
The definition is the .c; the prototype's header is `declared_at`.
Given
f = _function(built, "ct_memcmp")
When
- —
Then
- ✓ f.file equals "library/ct.c"
- ✓ [(d.file, d.line) for d in f.declared_at] equals [("include/ct.h", 3)]
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 · 32 of 226 steps
… 17 earlier steps
… 23 steps between
… 4 steps between
… 6 steps between
… 51 steps between
… 2 steps between
… 4 steps between
… 5 steps between
… 23 steps between
… 18 later steps
3 more
- clew — `main` (clew/cli.py) · 15 of 400 steps
- Build this wiki from the index · 8 of 400 steps
- `main` (scripts/export_parity.py) · 8 of 203 steps
tests/test_declared_at.py:97 · its file's page
What it checks (2)
assert f.file == "library/ct.c"observes_functionviafassert [(d.file, d.line) for d in f.declared_at] == [("include/ct.h", 3)]observes_functionviaf
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
test_a_c_function_names_the_header_that_declares_it→_functionWhat 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 12 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-004 measured
- REQ-DDB-PIPE-003 measured
- REQ-DDB-PIPE-011 measured
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-002 measured
- 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-SCHEMA-011 measured