test_no_req_ids_skips

Tests › tests/guard/test_guard_checks_extended.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Given

  1. func = _make_func("f", tags={"brief": ["d"], "req": ["REQ-001"]})
→

When

  1. violations = check_req_exists(func, "a.c", BASE_CONFIG, req_ids=None)
→

Then

  1. ✓ len(violations) equals 0

tests/guard/test_guard_checks_extended.py:104 · its file's page

What it checks (1)

  1. assert len(violations) == 0 observes check_req_exists via violations

Where the product reaches it

  • main → _run → run_precommit → _validate_files → validate_file → check_req_exists (flow)

Call flow

test_no_req_ids_skips→_make_func→check_req_exists

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_no_req_ids_skips · 1 checkscheck_req_existsREQ-DDB-GUARD-001 · measuredcheck_req_exists_uncheckableREQ-DDB-GUARD-027 · inferred
Also reaches 2 requirements

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