test_a_field_whose_class_is_not_indexed_is_skipped¶
Tests › tests/test_python_class_fields.py
What this test is for
Why it exists
FAILS CLOSED. A class the index does not hold — excluded by scope, or in a file doxygen did not parse — gives nothing to attach to, and inventing a compound would put a class in the index that no other layer knows about. The attribute is dropped, which is the state before this stage existed.
Given
conn = _index()harvested = [(1, {"class_fields": [["field", "NotIndexed", "str", 3]]})]
When
_recover_class_fields_into(conn, harvested)
Then
- ✓ _recover_class_fields_into(conn, harvested) equals 0
tests/test_python_class_fields.py:249 · its file's page
What it checks (1)
assert _recover_class_fields_into(conn, harvested) == 0observes_recover_class_fields_into
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
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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-INDEX-004 measured
- REQ-DDB-WIKI-054 inferred