test_an_unknown_event_role_is_refused

Tests › tests/test_declaration.py

passed Passed in the packaged run.

What this test is for

Why it exists

FAIL CLOSED, one level below the section allow-list. Degrading a misspelled `producers:` to a default would file an emitter as a handler, and a REVERSED edge is worse than a missing one: these rows carry `declared=1` and `confidence='high'` because an author asserted them, so `chain_trace` would report causality flowing the wrong way with the strongest grading the pipeline can give.

Given

  1. —
→

When

  1. declared_event_tags({"event_tags": {"broadcasts": "producers"}})
  2. message = str(exc.value)
→

Then

  1. ✓ raises DeclarationError
  2. ✓ message contains "broadcasts"
  3. ✓ message contains "producer"
  4. ✓ message contains "consumer"

tests/test_declaration.py:242 · its file's page

What it checks (2)

  1. assert "broadcasts" in message, "the refusal must name the offending tag" not attributed
  2. assert "producer" in message and "consumer" in message, "and the allowed roles" not attributed

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_an_unknown_event_role_is_refused→declared_event_tags

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_an_unknown_event_role_is_refused · 2 checksdeclared_event_tagsREQ-DDB-CONFIG-001 · measured
Also reaches 1 requirement

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