test_the_hash_block_above_the_definition_is_its_doc

Tests › tests/test_cmakeast.py

passed Passed in the packaged run.

What this test is for

Why it exists

The preceding `#` block documents the definition.

Given

  1. out = _harvest(_LISTS)
  2. fn = next(f for f in out["functions"] if f["name"] == "add_firmware")
→

When

  1. —
→

Then

  1. ✓ fn["doc"] contains "Register one firmware image and its map file."
  2. ✓ fn["doc"] contains "@version 2"
  3. ✓ fn["doc"] does not contain "#"

tests/test_cmakeast.py:105 · its file's page

What it checks (3)

  1. assert "Register one firmware image and its map file." in fn["doc"] not attributed
  2. assert "@version 2" in fn["doc"] not attributed
  3. assert "#" not in fn["doc"] 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_the_hash_block_above_the_definition_is_its_doc→_harvest

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.

Also reaches 1 requirement

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