test_only_ONE_trailing_character_is_retried

Tests › tests/test_requirements_declared.py

passed Passed in the packaged run.

What this test is for

Why it exists

A retry is a concession to punctuation, not a licence to keep chewing. `REQ-X...` is not a tag with three periods to peel — it is text this extractor should decline, and peeling until something matches is how a scanner starts inventing ids out of prose.

Given

  1. —
→

When

  1. pattern = resolve_req_id_pattern(None)
  2. _extract_req_tags("@req REQ-PROBE-001... ", pattern)
  3. _extract_req_tags("@req REQ-PROBE-001.. ", pattern)
→

Then

  1. ✓ _extract_req_tags("@req REQ-PROBE-001... ", pattern) equals []
  2. ✓ _extract_req_tags("@req REQ-PROBE-001.. ", pattern) equals []

tests/test_requirements_declared.py:381 · its file's page

What it checks (2)

  1. assert _extract_req_tags("@req REQ-PROBE-001... ", pattern) == [] observes _extract_req_tags
  2. assert _extract_req_tags("@req REQ-PROBE-001.. ", pattern) == [] observes _extract_req_tags

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_only_ONE_trailing_character_is_retried→resolve_req_id_pattern→_extract_req_tags

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_only_ONE_trailing_character_is_retried · 2 checksresolve_req_id_patternREQ-DDB-CONFIG-001 · measured_extract_req_tagsREQ-DDB-SCHEMA-006 · measured
Also reaches 2 requirements

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