test_check_names_every_problem

Tests › tests/test_wiki_build.py

passed Passed in the packaged run.

What this test is for

Why it exists

Unknown key, missing flow entry, missing prose file — each named.

Given

  1. repo, out = site_repo
  2. (repo / ".clew.yaml").write_text( _WIKI.replace("entry: load", "entry: no_such_fn").replace("README.md", "MISSING.md") + " colour: blue\n" )
→

When

  1. problems = "\n".join(check_wiki(repo, out))
→

Then

  1. ✓ problems contains "colour"
  2. ✓ problems contains "no_such_fn"
  3. ✓ problems contains "MISSING.md"

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 · 44 of 400 steps

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/config.pyclew/wiki/config.pyclew/wiki/config.pyclew/wiki/config.pyother filesother filesother filesother filestry (line 708)trybuild_wiki1. build_wiki → load_wiki_config1load_wiki_config2. load_wiki_config → _read_section2_read_section▶ test enters3–6. load_wiki_config → _overlaid3_overlaid +3 more7. _requirements_section → read_requirements_section7read_requirements_section8–9. read_requirements_section → _validate_node8_validate_node +1 more

… 6 steps between

callercallercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/config.pyclew/wiki/config.pyclew/wiki/config.pyclew/wiki/config.pyclew/wiki/config.pyother filesother filesother filesother filesother filesloop (line 417)loopalt (line 421)altloop (line 135)looptry (line 752)tryloop (line 1312)loopopt (line 1314)optbuild_wiki16. list → link16link17. _validate_dict_node → _validate_node17_validate_node18. load_wiki_config → _top_level18_top_level▶ test enters19–21. load_wiki_config → _unknown19_unknown +2 more22. _strings → all22all23–25. all → _events23_events +2 more26–37. load_wiki_config → _strings26_strings +11 more38. _declared_report → read_guard_section38read_guard_section39–41. load_wiki_config → _issues39_issues +2 more42. _sbom → all42all43–47. load_wiki_config → _one_of43_one_of +4 more48. _comments → all48all49–55. load_wiki_config → _doc_tags49_doc_tags +6 more56. build_wiki → report_limit56report_limit57. build_wiki → _build_site57_build_site

… 111 steps between

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesopt (line 201)optbuild_wiki169. derive_flow → _entry_rowids169_entry_rowids170. _entry_rowids → identity_rowids170identity_rowids171. identity_rowids → function_candidates171function_candidates▶ test enters172–175. function_candidates → table_exists172table_exists +3 more176–177. matching_identity → qualified_name_of176qualified_name_of +1 more

… 223 later steps

1 more

tests/test_wiki_build.py:99 · its file's page

What it checks (1)

  1. assert "colour" in problems and "no_such_fn" in problems and "MISSING.md" in problems observes check_wiki via problems

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_check_names_every_problem→check_wiki

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_check_names_every_problem · 1 checkscheck_wiki… 3 calls …git_argvREQ-DDB-CONFIG-001 · inferredcheck_wiki… 5 calls …_is_flat_req_listREQ-DDB-CONFIG-003 · inferredcheck_wikiload_wiki_config_requirements_sectionread_requirements_sectionREQ-DDB-GUARD-012 · measuredcheck_wiki… 8 calls …apply_opt_in_languagesREQ-DDB-GUARD-024 · inferredcheck_wikitrace_problemscatalog_requirementsread_catalog_atREQ-DDB-GUARD-027 · inferredcheck_wiki_flow_problemsconnectREQ-DDB-QUERY-001 · measuredcheck_wiki_flow_problemsidentity_rowidsREQ-DDB-QUERY-003 · measuredcheck_wiki_flow_problemsidentity_rowidsREQ-DDB-QUERY-010 · measuredcheck_wiki… 5 calls …resolve_catalog_pathREQ-DDB-SCHEMA-006 · inferredcheck_wiki… 4 calls …link_idsREQ-DDB-SCHEMA-015 · inferredcheck_wikiREQ-DDB-WIKI-003 · measuredcheck_wikitrace_problemsload_nodesREQ-DDB-WIKI-004 · measured

and 6 more requirement paths, listed below.

Also reaches 18 requirements

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