test_ast_record_unique_match_resolved

Tests › tests/test_build_docs_db.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-PIPE-001 REQ-DDB-PIPE-010

Given

  1. edges_resolved: list = []
  2. edges_fuzzy: list = []
→

When

  1. _ast_record_call_edge( caller_rowid=10, callee_name="malloc", name_to_rowids={"malloc": [42]}, edges_resolved=edges_resolved, edges_fuzzy=edges_fuzzy, )
→

Then

  1. ✓ edges_resolved equals [(10, 42, "ast")]
  2. ✓ edges_fuzzy equals []

tests/test_build_docs_db.py:456 · its file's page

What it checks (2)

  1. assert edges_resolved == [(10, 42, "ast")] not attributed
  2. assert 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_edge

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_ast_record_unique_match_resolved · 2 checks_ast_record_call_edge_narrow_by_receiver_one_classallREQ-DDB-WIKI-054 · inferred

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-001catalogunknown
REQ-DDB-PIPE-010catalogunknown
Also reaches 1 requirement

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