test_a_capped_list_still_reports_the_true_count¶
Tests › tests/test_diagnostics.py
What this test is for
Why it exists
A cap that cannot be seen is how a bounded answer comes to read as a complete one. The count is the claim and stays exact, so `count > len(named)` makes the truncation visible without a second field.
Given
rows = [ ("function", f"Fam{fam}_Set_{key}") for fam in range(dg.MAX_NAMED + 3) for key in ("A", "B", "C", "D") ]db = _corpus(tmp_path / "clew.db", rows)
When
meta = dg.collect(db, tmp_path / "absent.Doxyfile", None, None, None).as_meta()
Then
- ✓ meta["accessor_families_count"] equals str(dg.MAX_NAMED + 3)
- ✓ meta["accessor_families"].count("keys)") equals dg.MAX_NAMED
tests/test_diagnostics.py:309 · its file's page
What it checks (2)
assert meta["accessor_families_count"] == str(dg.MAX_NAMED + 3)observescollectviametaassert meta["accessor_families"].count("keys)") == dg.MAX_NAMEDobservescollectviameta
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
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.
Also reaches 7 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-CONFIG-007 measured
- REQ-DDB-QUERY-011 measured
- REQ-DDB-SCHEMA-001 measured
- REQ-DDB-SCHEMA-005 measured
- REQ-DDB-SCHEMA-011 measured
- REQ-DDB-SCHEMA-012 measured