test_no_path_table_is_not_a_file

Tests › tests/test_file_subject.py

passed Passed in the packaged run.

What this test is for

Why it exists

The outermost degradation step, and the one `table_exists` is for.

Given

  1. conn = sqlite3.connect(tmp_path / "empty.db")
→

When

  1. is_indexed_file(conn, "src/thin.c")
  2. conn.close()
→

Then

  1. ✓ is_indexed_file(conn, "src/thin.c") is False

tests/test_file_subject.py:188 · its file's page

What it checks (1)

  1. assert is_indexed_file(conn, "src/thin.c") is False observes is_indexed_file

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_no_path_table_is_not_a_file→is_indexed_file

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_no_path_table_is_not_a_file · 1 checksis_indexed_filetable_existsREQ-DDB-QUERY-003 · measuredis_indexed_fileREQ-DDB-QUERY-004 · measured
Also reaches 2 requirements

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