clew
  • Requirements
  • Flows
  • Tests
  • Change impact
  • Map
  • Architecture
  • Docs
  • SBOM

test_a_permalink_needs_the_commit_on_a_remote¶

Tests › tests/test_wiki_symbols.py

passed Passed in the packaged run.

What this test is for

Why it exists

P1f: unpushed with a remote → unpublished; pushed → published; no remote → unknown.

Verifies REQ-DDB-WIKI-026 REQ-DDB-WIKI-027

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.

Build this wiki from the index · 4 of 400 steps

… 60 earlier steps

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyother filesother filesother filesother filestry (line 1123)trytry (line 1155)tryloop (line 63)looploop (line 64)loopbuild_wiki61. _build_site → _commit61_commit62. _commit → git_argv62git_argv63–64. git_argv → _no_ext_diff63_no_ext_diff +1 more65. _build_site → commit_published65commit_published66. commit_published → git_argv66git_argv▶ test enters67. commit_published → git_argv67git_argv68. _build_site → gather68gather69. gather → link_kind69link_kind

… 331 later steps

4 more
  • thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 2 of 142 steps
  • Build, refresh and check the index · 2 of 153 steps
  • clew — `main` (clew/cli.py) · 2 of 400 steps
  • `main` (clew/guard/main.py) · 2 of 357 steps

tests/test_wiki_symbols.py:74 · its file's page

What it checks (3)

  1. assert commit_published(work, sha) is None
  2. assert commit_published(work, sha) is False
  3. assert commit_published(work, sha) is True

Where the product reaches it

  • build_wiki → _build_site → commit_published (flow)

Call flow

test_a_permalink_needs_the_commit_on_a_remote→_git→commit_published

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_permalink_needs_the_commit_on_a_remote · 3 checkscommit_publishedgit_argvREQ-DDB-CONFIG-001 · measuredcommit_publishedREQ-DDB-WIKI-025 · measured

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-026catalogunknown
REQ-DDB-WIKI-027catalogunknown
Also reaches 2 requirements

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

  • REQ-DDB-CONFIG-001 measured
  • REQ-DDB-WIKI-025 measured
clew Generated by clew wiki from the repository's index