test_ambiguous_or_absent_class_is_skipped_not_guessed¶
Tests › tests/test_dispatch.py
What this test is for
Why it exists
Two indexed compounds sharing a tail would have DIFFERENT implementors, so picking one fabricates a call graph; and a declared type that is out of this build's scope (conditional compilation) must not fail a build, because a declaration is a standing statement across configurations.
Given
compounds = dict(_IFACE_COMPOUNDS)compounds["other::ILinkPort"] = []db = _make_db(tmp_path, _IFACE_FUNCTIONS, compounds=compounds, call_edges=[(12, 10)])
When
ambiguous = load_dispatch_manifest( {"interfaces": [{"interface": "ILinkPort", "binds": "SerialLinkPort"}]} )import_declared_dispatch_edges(db, tmp_path, ambiguous)absent = load_dispatch_manifest( {"interfaces": [{"interface": "INotIndexed", "binds": "AlsoAbsent"}]} )import_declared_dispatch_edges(db, tmp_path, absent)
Then
- ✓ _declared_edges(db) equals []
- ✓ _declared_edges(db) equals []
tests/test_dispatch.py:388 · its file's page
What it checks (2)
assert _declared_edges(db) == []observes_declared_edgesassert _declared_edges(db) == []observes_declared_edges
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_ambiguous_or_absent_class_is_skipped_not_guessed→load_dispatch_manifest→import_declared_dispatch_edges→_declared_edgesWhat 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 9 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-003 measured
- REQ-DDB-PIPE-011 inferred
- REQ-DDB-PIPE-012 inferred
- REQ-DDB-QUERY-003 measured
- REQ-DDB-SCHEMA-003 measured
- REQ-DDB-SCHEMA-004 measured
- REQ-DDB-SCHEMA-007 measured
- REQ-DDB-SCHEMA-012 measured
- REQ-DDB-WIKI-054 inferred