test_ast_record_unique_match_resolved¶
Tests › tests/test_build_docs_db.py
What this test is for
Given
edges_resolved: list = []edges_fuzzy: list = []
When
_ast_record_call_edge( caller_rowid=10, callee_name="malloc", name_to_rowids={"malloc": [42]}, edges_resolved=edges_resolved, edges_fuzzy=edges_fuzzy, )
Then
- ✓ edges_resolved equals [(10, 42, "ast")]
- ✓ edges_fuzzy equals []
tests/test_build_docs_db.py:456 · its file's page
What it checks (2)
assert edges_resolved == [(10, 42, "ast")]not attributedassert edges_fuzzy == []not attributed
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_ast_record_unique_match_resolved→_ast_record_call_edgeWhat 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 (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-001 | catalog | unknown |
| REQ-DDB-PIPE-010 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-054 inferred