test_valid_req_no_violation

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={"REQ-001"})
→

Then

  1. ✓ len(violations) equals 0

What it exercises

The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.

`main` (clew/guard/main.py) · 1 of 357 steps

… 221 earlier steps

program launcherprogram launcherprogram launcherprogram launcherclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/checks.pyclew/guard/checks.pyclew/guard/checks.pyclew/guard/checks.pyloop (line 252)looploop (line 1022)loopopt (line 1026)optmain222. check_duplicate_tags → get_validate222get_validate223. validate_file → check_req_exists223check_req_exists224. check_req_exists → get_validate224get_validate▶ test enters225. check_req_exists → _uncheckable225_uncheckable226. validate_file → check_fails_when_exists226check_fails_when_exists

… 131 later steps

tests/guard/test_guard_checks_extended.py:93 · 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_valid_req_no_violation→_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_valid_req_no_violation · 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.