test_declared_event_keys_reads_the_repos_own_aliases¶
Tests › tests/test_event_edges.py
What this test is for
Why it exists
The xrefitem KEY is repo-chosen, so it is read from the target's ALIASES rather than assumed. Only the author-facing TAG NAME is interpreted.
Given
doxyfile = tmp_path / "Doxyfile"doxyfile.write_text(_XREFITEM_ALIASES, encoding="utf-8")
When
keys = _declared_event_keys(doxyfile, None)
Then
- ✓ keys equals {"evt_emits": PRODUCER, "evt_handles": CONSUMER}
- ✓ keys does not contain "req_trace"
tests/test_event_edges.py:97 · its file's page
What it checks (2)
assert keys == {"evt_emits": PRODUCER, "evt_handles": CONSUMER}observes_declared_event_keysviakeysassert "req_trace" not in keysobserves_declared_event_keysviakeys
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_declared_event_keys_reads_the_repos_own_aliases→_declared_event_keysWhat 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-CONFIG-007 measured