test_a_truncated_issue_fetch_says_so

Tests › tests/test_wiki_tuning.py

passed Passed in the packaged run.

What this test is for

Why it exists

D14: the fetch stopped at its page cap and returned what it had with no disclosure.

Given

  1. pages = iter([[{"n": i}] * 100 for i in range(60)])
→

When

  1. rows, truncated = fetch_pages(lambda page: next(pages), max_pages=3)
→

Then

  1. ✓ len(rows) equals 300
  2. ✓ truncated is True

tests/test_wiki_tuning.py:133 · its file's page

What it checks (1)

  1. assert len(rows) == 300 and truncated is True 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_a_truncated_issue_fetch_says_so→fetch_pages

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_a_truncated_issue_fetch_says_so · 1 checksfetch_pagesREQ-DDB-WIKI-028 · measured
Also reaches 1 requirement

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