test_a_covered_family_is_not_reported

Tests › tests/test_diagnostics.py

passed Passed in the packaged run.

What this test is for

Why it exists

The diagnostic names what is NOT covered, so declaring the prefix must silence it. Without this the payload would be a list of every accessor family in the repo, which would say nothing about what is missing — and would keep saying it after an operator fixed the thing it complained about.

Given

  1. db = _corpus( tmp_path / "clew.db", [("macro definition", f"Store_Set_{key}") for key in ("A", "B", "C", "D", "E")], )
  2. covering = NamePrefixPattern("Store_Set_")
→

When

  1. bare = dg.collect(db, tmp_path / "absent.Doxyfile", None, None, None)
  2. conn = sqlite3.connect(f"file:{db}?mode=ro", uri=True)
  3. try: from clew.shared_key_edges import detect_undeclared_accessor_families assert detect_undeclared_accessor_families(conn, [covering]) == [] finally: conn.close()
→

Then

  1. ✓ bare.as_meta()["accessor_families_count"] equals "1"

tests/test_diagnostics.py:334 · its file's page

What it checks (2)

  1. assert bare.as_meta()["accessor_families_count"] == "1", "control: undeclared, so reported" observes collect via bare
  2. assert detect_undeclared_accessor_families(conn, [covering]) == [] observes detect_undeclared_accessor_families

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_a_covered_family_is_not_reported→_corpus→collect→detect_undeclared_accessor_families

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_a_covered_family_is_not_reported · 2 checkscollectresolve_shared_key_patternsREQ-DDB-CONFIG-006 · measuredcollectREQ-DDB-CONFIG-007 · measuredcollectload_thread_patternsREQ-DDB-SCHEMA-001 · measureddetect_undeclared_accessor_familiesREQ-DDB-SCHEMA-005 · measuredcollectload_lock_patternsREQ-DDB-SCHEMA-011 · measuredcollectload_lock_patternsdeclaration_originREQ-DDB-SCHEMA-012 · measured
Also reaches 7 requirements

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