test_repo_without_event_aliases_writes_nothing

Tests › tests/test_event_edges.py

passed Passed in the packaged run.

What this test is for

Why it exists

demobot and every non-event repo: a correct negative, not an error.

Given

  1. db = tmp_path / "evt.db"
  2. _make_db(db, [(1, "f", 1, _EMITS.format(topic="EVENT:FOO"))])
2 more
  1. doxyfile = tmp_path / "Doxyfile"
  2. doxyfile.write_text("PROJECT_NAME = synth\nINPUT =\n", encoding="utf-8")
→

When

  1. import_event_edges(db, doxyfile)
  2. conn = sqlite3.connect(db)
  3. conn.close()
→

Then

  1. ✓ conn.execute("SELECT COUNT(*) FROM shared_key_edges").fetchone()[0] equals 0

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

What it checks (1)

  1. assert conn.execute("SELECT COUNT(*) FROM shared_key_edges").fetchone()[0] == 0 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_repo_without_event_aliases_writes_nothing→import_event_edges

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_repo_without_event_aliases_writes_nothing · 1 checksimport_event_edges_declared_event_keysclassify_aliasesREQ-DDB-CONFIG-007 · measuredimport_event_edgesREQ-DDB-SCHEMA-009 · measured
Also reaches 2 requirements

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