test_why_is_the_docstring_and_the_declared_requirements

Tests › tests/test_wiki_testcard.py

passed Passed in the packaged run.

What this test is for

Why it exists

The docstring's first paragraph and only the declared (tag/catalog) requirements.

Given

  1. html = _card()
  2. why = html.split('class="tc-why"', 1)[1].split("</div>", 1)[0]
→

When

  1. —
→

Then

  1. ✓ why contains "An imported trace is drawn over its flow."
  2. ✓ why does not contain "@brief"
  3. ✓ why contains "REQ-W-001"
  4. ✓ why does not contain "REQ-X-002"

tests/test_wiki_testcard.py:50 · its file's page

What it checks (2)

  1. assert "An imported trace is drawn over its flow." in why and "@brief" not in why not attributed
  2. assert "REQ-W-001" in why and "REQ-X-002" not in why not attributed

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_why_is_the_docstring_and_the_declared_requirements→_card

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_why_is_the_docstring_and_the_declared_requirements · 2 checks_cardtest_cardREQ-DDB-WIKI-026 · measured
Also reaches 1 requirement

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