test_cap_at_depth_taper

Tests › tests/test_query.py

passed Passed in the packaged run.

What this test is for

Why it exists

@req REQ-DDB-QUERY-002

Verifies REQ-DDB-QUERY-001 REQ-DDB-QUERY-002

Given

  1. —
→

When

  1. _cap_at_depth(8, 1)
  2. _cap_at_depth(8, 2)
  3. _cap_at_depth(8, 4)
2 more
  1. _cap_at_depth(8, 12)
  2. _cap_at_depth(1, 3)
→

Then

  1. ✓ _cap_at_depth(8, 1) equals 8
  2. ✓ _cap_at_depth(8, 2) equals 4
  3. ✓ _cap_at_depth(8, 4) equals 1
  4. ✓ _cap_at_depth(8, 12) equals 1
  5. ✓ _cap_at_depth(1, 3) equals 1

tests/test_query.py:1039 · its file's page

What it checks (5)

  1. assert _cap_at_depth(8, 1) == 8 observes _cap_at_depth
  2. assert _cap_at_depth(8, 2) == 4 observes _cap_at_depth
  3. assert _cap_at_depth(8, 4) == 1 observes _cap_at_depth
  4. assert _cap_at_depth(8, 12) == 1 observes _cap_at_depth
  5. assert _cap_at_depth(1, 3) == 1 observes _cap_at_depth

Where the product reaches it

  • dossier → _chain_for → chain_trace → _cap_at_depth (flow)

Call flow

test_cap_at_depth_taper→_cap_at_depth

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_cap_at_depth_taper · 5 checks_cap_at_depthREQ-DDB-QUERY-002 · tag

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-QUERY-001catalogunknown
REQ-DDB-QUERY-002tag1 of 9: _cap_at_depth