test_call_edges_resolves_method_calls¶
Tests › tests/test_rust_ast.py
What this test is for
Why it exists
The test says nothing about why.
Given
tree, src = _parse( "struct Foo;\nimpl Foo {\n fn go(&self) {}\n}\nfn main() {\n let f = Foo;\n f.go();\n}\n" )
When
sites = _ast_harvest_calls(tree, src)
Then
- ✓ any(s[0] == "go" and s[2] == "ast_member" for s in sites) holds
tests/test_rust_ast.py:59 · its file's page
What it checks (1)
assert any(s[0] == "go" and s[2] == "ast_member" for s in sites)observes_ast_harvest_callsviasites
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_call_edges_resolves_method_calls→_parse→_ast_harvest_callsWhat 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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-003 measured