test_declared_edge_triggered_null_without_manifest_field

Tests › tests/test_r1_richness.py

passed Passed in the packaged run.

What this test is for

Why it exists

A declared key that omits edge_triggered leaves the column NULL.

Verifies REQ-DDB-SCHEMA-001 REQ-DDB-SCHEMA-003 REQ-DDB-SCHEMA-004

Given

  1. db = _make_db(tmp_path, [(1, "w", 1, 1), (2, "r", 2, 2)])
  2. manifest = tmp_path / "dm.toml"
  3. manifest.write_text( '[[keys]]\nname = "K"\nevent = true\nwriters = ["w"]\nreaders = ["r"]\n', )
→

When

  1. import_shared_key_edges_declared(db, manifest)
  2. conn = sqlite3.connect(str(db))
  3. row = conn.execute( "SELECT dispatch_mode, edge_triggered FROM shared_key_edges", ).fetchone()
  4. conn.close()
→

Then

  1. ✓ row equals ("unknown", None)

What it exercises

The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.

Build this wiki from the index · 1 of 400 steps

… 96 earlier steps

callercallercallercallerother filesother filesother filesother filesloop (line 223)looploop (line 224)looploop (line 74)looploop (line 78)loopbuild_wiki97–98. console_scripts → _read_toml97_read_toml +1 more99. require_toml_module → toml_module99toml_module▶ test enters100. console_scripts → _nested100_nested101. _scripts → _defined101_defined

… 299 later steps

1 more

tests/test_r1_richness.py:810 · its file's page

What it checks (1)

  1. assert row == ("unknown", None) 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_declared_edge_triggered_null_without_manifest_field→import_shared_key_edges_declared

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_edge_triggered_null_without_manifest_field · 1 checksimport_shared_key_edges_declared_definition_preferring_name_indexREQ-DDB-QUERY-003 · measuredimport_shared_key_edges_declared… 3 calls …_coerce_edge_triggeredREQ-DDB-SCHEMA-002 · measuredimport_shared_key_edges_declaredREQ-DDB-SCHEMA-005 · measuredimport_shared_key_edges_declared_ensure_shared_key_edges_tableREQ-DDB-SCHEMA-007 · measured

Requirements it verifies (3)

requirementlinked byimplementers exercised
REQ-DDB-SCHEMA-001catalogunknown
REQ-DDB-SCHEMA-003catalogunknown
REQ-DDB-SCHEMA-004catalogunknown
Also reaches 5 requirements

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