test_cli_apply_scope_doxyfile_is_inert¶
Tests › tests/test_scope.py
What this test is for
Why it exists
gh#333 flipped the DEFAULT to `from-guard`, and this is the surviving narrow path: an operator who passes `--scope doxyfile` gets the Doxyfile's own INPUT and no derivation at all.
Verifies REQ-DDB-PIPE-014
Given
root = _repo(tmp_path / "repo", _SIMPLE_CONFIG)_write(root / "src" / "a.c")args = _args( tmp_path / "clew.db", doxyfile=str(root / "Doxyfile"), scope=sc.SCOPE_DOXYFILE, )
When
_apply_scope(args, root)
Then
- ✓ args.scope equals sc.SCOPE_DOXYFILE
- ✓ args.replace_input is False
- ✓ args.extra_input is None
tests/test_scope.py:206 · its file's page
What it checks (3)
assert args.scope == sc.SCOPE_DOXYFILEobserves_argsviaargsassert args.replace_input is Falseobserves_argsviaargsassert args.extra_input is Noneobserves_argsviaargs
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_cli_apply_scope_doxyfile_is_inert→_repo→_write→_args→_apply_scopeWhat 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 (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-014 | catalog | unknown |
Also reaches 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 inferred
- REQ-DDB-GUARD-012 inferred
- REQ-DDB-WIKI-054 inferred