test_xrefdescription_ignores_non_matching_tokens

Tests › tests/test_requirements_declared.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-CONFIG-001

Given

  1. pattern = re.compile(r"^REQ-PROJ-[A-Z]+-[0-9]{3}$")
  2. text = ( "<xrefdescription><para>REQ-PROJ-NAV-002 localizes the robot 1.0.0" " </para></xrefdescription>" )
→

When

  1. _extract_req_tags(text, pattern)
→

Then

  1. ✓ _extract_req_tags(text, pattern) equals ["REQ-PROJ-NAV-002"]

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

What it checks (1)

  1. assert _extract_req_tags(text, pattern) == ["REQ-PROJ-NAV-002"] 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_xrefdescription_ignores_non_matching_tokens→_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_xrefdescription_ignores_non_matching_tokens · 1 checks_extract_req_tagsREQ-DDB-SCHEMA-006 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-001catalogunknown
Also reaches 1 requirement

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