test_an_unstated_scope_keeps_the_parsers_default¶
Tests › tests/test_build_docs_db.py
What this test is for
Why it exists
THE EMBEDDING ENTRY POINT CONTRADICTED ITS OWN DOCSTRING. `build_index` says "defaults are sourced by parsing rather than restated here, so a flag added to `_build_argparser` reaches this path with its intended default" — and then `scope` alone restated one, with the OPPOSITE value: signature `SCOPE_DOXYFILE`, parser `SCOPE_FROM_GUARD`.
Verifies REQ-DDB-PIPE-001 REQ-DDB-PIPE-010
Given
seen: list[str] = []monkeypatch.setattr(cli, "_run_pipeline", lambda args: seen.append(args.scope))
When
cli.build_index(output="/tmp/unused.db")cli.build_index(output="/tmp/unused.db", scope=SCOPE_DOXYFILE)
Then
- ✓ seen equals [SCOPE_FROM_GUARD]
- ✓ seen[-1] equals SCOPE_DOXYFILE
tests/test_build_docs_db.py:2258 · its file's page
What it checks (2)
assert seen == [SCOPE_FROM_GUARD], "an unstated scope must be the parser's default"not attributedassert seen[-1] == SCOPE_DOXYFILEnot 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_an_unstated_scope_keeps_the_parsers_default→build_indexWhat 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.
and 42 more requirement paths, listed below.
Requirements it verifies (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-001 | catalog | 3 of 5: _candidate_docs, enrich_database, ingest_supplementary_docs |
| REQ-DDB-PIPE-010 | catalog | 2 of 2: _build_inferred_edges, _log_suppressed_keys |
Also reaches 52 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CLI-001 inferred
- REQ-DDB-CLI-002 inferred
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-CONFIG-003 inferred
- REQ-DDB-CONFIG-004 inferred
- REQ-DDB-CONFIG-005 inferred
- REQ-DDB-CONFIG-006 inferred
- REQ-DDB-CONFIG-007 inferred
- REQ-DDB-CONFIG-009 inferred
- REQ-DDB-GUARD-012 inferred
- REQ-DDB-GUARD-019 inferred
- REQ-DDB-GUARD-024 inferred
- REQ-DDB-INDEX-001 inferred
- REQ-DDB-INDEX-002 inferred
- REQ-DDB-INDEX-003 inferred
- REQ-DDB-INDEX-004 inferred
- REQ-DDB-INDEX-005 inferred
- REQ-DDB-INDEX-006 inferred
- REQ-DDB-INDEX-007 inferred
- REQ-DDB-INDEX-008 inferred
- REQ-DDB-INDEX-009 inferred
- REQ-DDB-INDEX-010 inferred
- REQ-DDB-INDEX-011 inferred
- REQ-DDB-MCP-001 inferred
- REQ-DDB-PIPE-003 inferred
- REQ-DDB-PIPE-004 inferred
- REQ-DDB-PIPE-005 inferred
- REQ-DDB-PIPE-006 inferred
- REQ-DDB-PIPE-007 inferred
- REQ-DDB-PIPE-008 inferred
- REQ-DDB-PIPE-009 inferred
- REQ-DDB-PIPE-011 inferred
- REQ-DDB-PIPE-012 inferred
- REQ-DDB-PIPE-013 inferred
- REQ-DDB-PIPE-014 inferred
- REQ-DDB-PIPE-015 inferred
- REQ-DDB-QUERY-003 inferred
- REQ-DDB-QUERY-011 inferred
- REQ-DDB-SCHEMA-001 inferred
- REQ-DDB-SCHEMA-002 inferred
- REQ-DDB-SCHEMA-003 inferred
- REQ-DDB-SCHEMA-004 inferred
- REQ-DDB-SCHEMA-005 inferred
- REQ-DDB-SCHEMA-006 inferred
- REQ-DDB-SCHEMA-007 inferred
- REQ-DDB-SCHEMA-009 inferred
- REQ-DDB-SCHEMA-011 inferred
- REQ-DDB-SCHEMA-012 inferred
- REQ-DDB-SCHEMA-013 inferred
- REQ-DDB-SCHEMA-014 inferred
- REQ-DDB-SCHEMA-015 inferred
- REQ-DDB-WIKI-054 inferred