test_store_kconfig_refuses_an_unfound_model_on_its_own

Tests › tests/test_kconfig.py

passed Passed in the packaged run.

What this test is for

Why it exists

FOUND BY A CONTROL, and the control is the only reason this exists.

Verifies REQ-DDB-PIPE-007 REQ-DDB-PIPE-014 REQ-DDB-QUERY-006

Given

  1. db = tmp_path / "clew.db"
  2. _db_with_paths(db, ())
→

When

  1. store_kconfig(db, KconfigModel(location=KconfigLocation(path=None)))
  2. conn = sqlite3.connect(str(db))
  3. tables = {row[0] for row in conn.execute("SELECT name FROM sqlite_master WHERE type='table'")}
  4. conn.close()
→

Then

  1. ✓ store_kconfig(db, KconfigModel(location=KconfigLocation(path=None))) equals 0
  2. ✓ tables does not contain "kconfig_symbols"
  3. ✓ tables does not contain "kconfig_choices"

tests/test_kconfig.py:750 · its file's page

What it checks (3)

  1. assert store_kconfig(db, KconfigModel(location=KconfigLocation(path=None))) == 0 observes store_kconfig
  2. assert "kconfig_symbols" not in tables not attributed
  3. assert "kconfig_choices" not in tables 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_store_kconfig_refuses_an_unfound_model_on_its_own→_db_with_paths→store_kconfig

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_store_kconfig_refuses_an_unfound_model_on_its_own · 3 checksstore_kconfigREQ-DDB-CONFIG-005 · measuredstore_kconfigensure_kconfig_tablesREQ-DDB-SCHEMA-013 · inferred

Requirements it verifies (3)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-007catalogunknown
REQ-DDB-PIPE-014catalogunknown
REQ-DDB-QUERY-006catalogunknown
Also reaches 2 requirements

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