test_cli_apply_scope_doxyfile_is_inert

Tests › tests/test_scope.py

passed Passed in the packaged run.

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

  1. root = _repo(tmp_path / "repo", _SIMPLE_CONFIG)
  2. _write(root / "src" / "a.c")
  3. args = _args( tmp_path / "clew.db", doxyfile=str(root / "Doxyfile"), scope=sc.SCOPE_DOXYFILE, )
→

When

  1. _apply_scope(args, root)
→

Then

  1. ✓ args.scope equals sc.SCOPE_DOXYFILE
  2. ✓ args.replace_input is False
  3. ✓ args.extra_input is None

tests/test_scope.py:206 · its file's page

What it checks (3)

  1. assert args.scope == sc.SCOPE_DOXYFILE observes _args via args
  2. assert args.replace_input is False observes _args via args
  3. assert args.extra_input is None observes _args via args

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_scope

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_cli_apply_scope_doxyfile_is_inert · 3 checks_apply_scopedeclared_scope_rejectionREQ-DDB-CONFIG-001 · inferred_apply_scope… 6 calls …_validate_nodeREQ-DDB-GUARD-012 · inferred_apply_scope… 6 calls …allREQ-DDB-WIKI-054 · inferred

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-014catalogunknown
Also reaches 3 requirements

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