test_declared_event_keys_reads_the_repos_own_aliases

Tests › tests/test_event_edges.py

passed Passed in the packaged run.

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

  1. doxyfile = tmp_path / "Doxyfile"
  2. doxyfile.write_text(_XREFITEM_ALIASES, encoding="utf-8")
→

When

  1. keys = _declared_event_keys(doxyfile, None)
→

Then

  1. ✓ keys equals {"evt_emits": PRODUCER, "evt_handles": CONSUMER}
  2. ✓ keys does not contain "req_trace"

tests/test_event_edges.py:97 · its file's page

What it checks (2)

  1. assert keys == {"evt_emits": PRODUCER, "evt_handles": CONSUMER} observes _declared_event_keys via keys
  2. assert "req_trace" not in keys observes _declared_event_keys via keys

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_keys

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_declared_event_keys_reads_the_repos_own_aliases · 2 checks_declared_event_keysclassify_aliasesREQ-DDB-CONFIG-007 · measured
Also reaches 1 requirement

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