test_inherited_members_do_not_pair_the_interface_with_itself¶
Tests › tests/test_dispatch.py
What this test is for
Why it exists
doxygen lists a base class's members under the DERIVED compound too, with the BASE's rowids — so pairing on membership alone emits `ILinkPort::~ILinkPort -> ILinkPort::~ILinkPort`. The `definition` boundary filter is what keeps a compound's OWNED members only, and without it a declaration fabricates self-recursion on every inherited member.
Given
db = _make_db( tmp_path, _IFACE_FUNCTIONS, compounds=_IFACE_COMPOUNDS, # No reimplements rows: force the same-name fallback, which is the path # that can see the inherited destructor as its own override. call_edges=[(12, 10), (12, 13)], )
When
manifest = load_dispatch_manifest( {"interfaces": [{"interface": "ILinkPort", "binds": "SerialLinkPort"}]} )import_declared_dispatch_edges(db, tmp_path, manifest)edges = _declared_edges(db)all(caller != callee for caller, callee, _ in edges)
Then
- ✓ edges does not contain (13, 13, CALL_MATCH_RESOLVED)
- ✓ all(caller != callee for caller, callee, _ in edges) holds
- ✓ edges contains (12, 11, CALL_MATCH_RESOLVED)
tests/test_dispatch.py:310 · its file's page
What it checks (3)
assert (13, 13, CALL_MATCH_RESOLVED) not in edgesobserves_declared_edgesviaedgesassert all(caller != callee for caller, callee, _ in edges)observesallassert (12, 11, CALL_MATCH_RESOLVED) in edgesobserves_declared_edgesviaedges
Where the product reaches it
dossier→_rank_enum_over_mirror→_class_side_is_only_enum_mirrors→all(flow)
Call flow
test_inherited_members_do_not_pair_the_interface_with_itself→load_dispatch_manifest→import_declared_dispatch_edges→_declared_edges→allWhat 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