test_a_field_whose_class_is_not_indexed_is_skipped

Tests › tests/test_python_class_fields.py

passed Passed in the packaged run.

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

  1. conn = _index()
  2. harvested = [(1, {"class_fields": [["field", "NotIndexed", "str", 3]]})]
→

When

  1. _recover_class_fields_into(conn, harvested)
→

Then

  1. ✓ _recover_class_fields_into(conn, harvested) equals 0

tests/test_python_class_fields.py:249 · its file's page

What it checks (1)

  1. assert _recover_class_fields_into(conn, harvested) == 0 observes _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

test_a_field_whose_class_is_not_indexed_is_skipped→_index→_recover_class_fields_into

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_a_field_whose_class_is_not_indexed_is_skipped · 1 checks_recover_class_fields_intoREQ-DDB-INDEX-004 · measured_recover_class_fields_intoallREQ-DDB-WIKI-054 · inferred
Also reaches 2 requirements

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