test_markdown_outside_the_scanned_set_is_not_ingested

Tests › tests/test_prose_markdown_coverage.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE REASON THIS IS NOT A WIDER GLOB. Both files are markdown on disk and inside the repository; one is in scope and one was excluded. A `**/*.md` would take both.

Given

  1. root = tmp_path / "repo"
  2. _write(root, "docs/design.md", "# Design\n\nOurs.\n")
3 more
  1. _write(root, "node_modules/left-pad/README.md", "# left-pad\n\nTheirs.\n")
  2. db = tmp_path / "clew.db"
  3. db.touch()
→

When

  1. ingest_supplementary_docs(db, root, files=["docs/design.md"])
→

Then

  1. ✓ _ingested(db) equals {"docs/design.md"}

tests/test_prose_markdown_coverage.py:76 · its file's page

What it checks (1)

  1. assert _ingested(db) == {"docs/design.md"} observes _ingested

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_markdown_outside_the_scanned_set_is_not_ingested→_ingested→_write→ingest_supplementary_docs

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_markdown_outside_the_scanned_set_is_not_ingested · 1 checksingest_supplementary_docs_ingest_one_doc_filememoizedREQ-DDB-INDEX-002 · measuredingest_supplementary_docsREQ-DDB-PIPE-001 · measuredingest_supplementary_docswithin_repoREQ-DDB-PIPE-014 · measured
Also reaches 3 requirements

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