test_ast_caller_at_line_finds_match_in_window¶
Tests › tests/test_build_docs_db.py
What this test is for
Given
funcs = [ (10, "foo", 1, 5), (20, "bar", 6, 12), (30, "baz", 13, 99), ]
When
_ast_caller_at_line(funcs, 3)_ast_caller_at_line(funcs, 7)_ast_caller_at_line(funcs, 99)_ast_caller_at_line(funcs, 100)
Then
- ✓ _ast_caller_at_line(funcs, 3) equals 10
- ✓ _ast_caller_at_line(funcs, 7) equals 20
- ✓ _ast_caller_at_line(funcs, 99) equals 30
- ✓ _ast_caller_at_line(funcs, 100) is None
tests/test_build_docs_db.py:441 · its file's page
What it checks (4)
assert _ast_caller_at_line(funcs, 3) == 10observes_ast_caller_at_lineassert _ast_caller_at_line(funcs, 7) == 20observes_ast_caller_at_lineassert _ast_caller_at_line(funcs, 99) == 30observes_ast_caller_at_lineassert _ast_caller_at_line(funcs, 100) is Noneobserves_ast_caller_at_line
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_caller_at_line_finds_match_in_window→_ast_caller_at_lineWhat 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 |