test_cap_at_depth_taper¶
Tests › tests/test_query.py
What this test is for
Given
- —
When
_cap_at_depth(8, 1)_cap_at_depth(8, 2)_cap_at_depth(8, 4)
2 more
_cap_at_depth(8, 12)_cap_at_depth(1, 3)
Then
- ✓ _cap_at_depth(8, 1) equals 8
- ✓ _cap_at_depth(8, 2) equals 4
- ✓ _cap_at_depth(8, 4) equals 1
- ✓ _cap_at_depth(8, 12) equals 1
- ✓ _cap_at_depth(1, 3) equals 1
tests/test_query.py:1039 · its file's page
What it checks (5)
assert _cap_at_depth(8, 1) == 8observes_cap_at_depthassert _cap_at_depth(8, 2) == 4observes_cap_at_depthassert _cap_at_depth(8, 4) == 1observes_cap_at_depthassert _cap_at_depth(8, 12) == 1observes_cap_at_depthassert _cap_at_depth(1, 3) == 1observes_cap_at_depth
Where the product reaches it
dossier→_chain_for→chain_trace→_cap_at_depth(flow)
Call flow
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.
Requirements it verifies (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-QUERY-001 | catalog | unknown |
| REQ-DDB-QUERY-002 | tag | 1 of 9: _cap_at_depth |