test_every_symbol_section_is_an_object

Tests › tests/test_wiki_objects_inv.py

passed Passed in the packaged run.

What this test is for

Why it exists

file::name for each section, pointing at its page and anchor.

Given

  1. functions = inventory.get("clew:function", {})
→

When

  1. page_for('pkg/a.py')
  2. anchor('run')
→

Then

  1. ✓ functions contains "pkg/a.py::run"
  2. ✓ functions contains "pkg/b.py::other"
  3. ✓ functions contains "pkg/a.py::helper"
  4. ✓ functions contains "pkg/b.py::helper"
  5. ✓ functions["pkg/a.py::run"] equals f"{page_for('pkg/a.py')}.html#{anchor('run')}"

tests/test_wiki_objects_inv.py:49 · its file's page

What it checks (3)

  1. assert "pkg/a.py::run" in functions and "pkg/b.py::other" in functions not attributed
  2. assert "pkg/a.py::helper" in functions and "pkg/b.py::helper" in functions not attributed
  3. assert functions["pkg/a.py::run"] == f"{page_for('pkg/a.py')}.html#{anchor('run')}" observes page_for

Where the product reaches it

  • build_wiki → _build_site → feature_pages → anchor (flow)
  • build_wiki → _build_site → symbol_pages → page_for (flow)

Call flow

test_every_symbol_section_is_an_object→page_for→anchor

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_every_symbol_section_is_an_object · 3 checkspage_forREQ-DDB-WIKI-025 · measured
Also reaches 1 requirement

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