test_every_symbol_section_is_an_object¶
Tests › tests/test_wiki_objects_inv.py
What this test is for
Why it exists
file::name for each section, pointing at its page and anchor.
Given
functions = inventory.get("clew:function", {})
When
page_for('pkg/a.py')anchor('run')
Then
- ✓ functions contains "pkg/a.py::run"
- ✓ functions contains "pkg/b.py::other"
- ✓ functions contains "pkg/a.py::helper"
- ✓ functions contains "pkg/b.py::helper"
- ✓ 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)
assert "pkg/a.py::run" in functions and "pkg/b.py::other" in functionsnot attributedassert "pkg/a.py::helper" in functions and "pkg/b.py::helper" in functionsnot attributedassert functions["pkg/a.py::run"] == f"{page_for('pkg/a.py')}.html#{anchor('run')}"observespage_for
Where the product reaches it
Call flow
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.
- REQ-DDB-WIKI-025 measured