test_call_edges_resolves_method_calls

Tests › tests/test_rust_ast.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Given

  1. tree, src = _parse( "struct Foo;\nimpl Foo {\n fn go(&self) {}\n}\nfn main() {\n let f = Foo;\n f.go();\n}\n" )
→

When

  1. sites = _ast_harvest_calls(tree, src)
→

Then

  1. ✓ 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)

  1. assert any(s[0] == "go" and s[2] == "ast_member" for s in sites) observes _ast_harvest_calls via sites

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_calls

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.

test_call_edges_resolves_method_calls · 1 checks_ast_harvest_callsis_python_treeREQ-DDB-PIPE-003 · measured
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.