test_readme_rst_is_split_by_the_rst_grammar_not_markdown

Tests › tests/test_prose_rst.py

passed Passed in the packaged run.

What this test is for

Why it exists

`README.rst` was always globbed, and was chunked as markdown. A `~` underline is no markdown heading at all, so the second section never split.

Given

  1. root = tmp_path / "repo"
  2. _write(root, "README.rst", "Tool\n~~~~\n\nIntro.\n\nUsage\n^^^^^\n\nRun it.\n")
2 more
  1. db = tmp_path / "clew.db"
  2. db.touch()
→

When

  1. ingest_supplementary_docs(db, root, files=[])
→

Then

  1. ✓ _chunks(db) equals [("README.rst", "Tool"), ("README.rst", "Usage")]

What it exercises

The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.

clew — `main` (clew/cli.py) · 1 of 400 steps

… 72 earlier steps

command-line usercommand-line usercommand-line usercommand-line userother filesother filesother filesother filesmain73–74. _ts_language_for → _grammar_available73_grammar_available +1 more75. has_language → compiled_languages75compiled_languages▶ test enters76. _ts_language_for → _try_import_ts_module76_try_import_ts_module77. build_context → scope_membership77scope_membership

… 323 later steps

tests/test_prose_rst.py:71 · its file's page

What it checks (1)

  1. assert _chunks(db) == [("README.rst", "Tool"), ("README.rst", "Usage")] observes _chunks

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_readme_rst_is_split_by_the_rst_grammar_not_markdown→_write→ingest_supplementary_docs→_chunks

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_readme_rst_is_split_by_the_rst_grammar_not_markdown · 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 4 requirements

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