test_shared_key_document_is_none_when_nothing_contributes

Tests › tests/test_dispatch.py

passed Passed in the packaged run.

What this test is for

Why it exists

A manifest declaring only interfaces or tables must leave the shared-key stage's inputs — and therefore its cache key — completely untouched.

Given

  1. —
→

When

  1. only_interfaces = load_dispatch_manifest({"interfaces": [{"interface": "I", "boundary": True}]})
  2. shared_key_document(only_interfaces)
  3. shared_key_document(empty_manifest())
  4. empty_manifest()
→

Then

  1. ✓ shared_key_document(only_interfaces) is None
  2. ✓ shared_key_document(empty_manifest()) is None

tests/test_dispatch.py:626 · its file's page

What it checks (2)

  1. assert shared_key_document(only_interfaces) is None observes shared_key_document
  2. assert shared_key_document(empty_manifest()) is None observes shared_key_document

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_shared_key_document_is_none_when_nothing_contributes→load_dispatch_manifest→shared_key_document→empty_manifest

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_shared_key_document_is_none_when_nothing_contributes · 2 checksload_dispatch_manifestREQ-DDB-SCHEMA-004 · measuredload_dispatch_manifestdeclaration_originREQ-DDB-SCHEMA-012 · measured
Also reaches 2 requirements

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