test_the_markdown_obeys_the_audience

Tests › tests/test_wiki_markdown.py

passed Passed in the packaged run.

What this test is for

Why it exists

`exclude_requirement_text` and `exclude_bodies` reach the Markdown.

Given

  1. public = _build(repo, tmp_path / "pub", "github", audience="public")
  2. partner = _build(repo, tmp_path / "par", "github", audience="partner")
→

When

  1. —
→

Then

  1. ✓ public["Requirements.md"] does not contain "Load the data"
  2. ✓ public["Requirements.md"] contains "REQ-W-001"
  3. ✓ any("SECRET_CALL_ARG" in t or "SECRET_BODY_MARKER" in t for t in partner.values()) is false

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 · 98 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

… 2 steps between

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyother filesother filesother filesother filestry (line 1123)trytry (line 1155)trybuild_wiki60. _build_site → valid_key60valid_key61. _build_site → _commit61_commit62. _commit → git_argv62git_argv▶ test enters63–64. git_argv → _no_ext_diff63_no_ext_diff +1 more65. _build_site → commit_published65commit_published66. commit_published → git_argv66git_argv

… 23 steps between

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyother filesother filesother filesother filesopt (line 611)optloop (line 43)looptry (line 146)tryopt (line 529)optopt (line 533)optloop (line 569)loopopt (line 571)optbuild_wiki90. test_functions → table_exists90table_exists91. _build_site → _all_flows91_all_flows92. _all_flows → list92list▶ test enters93. _all_flows → entry_point_flows93entry_point_flows94. entry_point_flows → connect94connect95–104. entry_point_flows → _scripts95_scripts +9 more105. _declared_entry_patterns → table_exists105table_exists106–111. _declared_entry_patterns → load_declaration106load_declaration +5 more112–115. _checked_section → _checked_list_section112_checked_list_section +3 more116. _checked_section → _checked_tests116_checked_tests117. _checked_tests → _checked_list_section117_checked_list_section118. _checked_tests → 118… 1 call not run

… 1 step between

callercallercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesother filesloop (line 43)loopopt (line 200)optloop (line 259)loopelif (line 264)elifopt (line 202)optbuild_wiki120–121. check_manifest_document → _checked_document120_checked_document +1 more122. _checked_section → _check_section_keys122_check_section_keys123. _mains → _not_test123_not_test124. _not_test → table_exists124table_exists125. entry_point_flows → _thread_entries125_thread_entries126. _thread_entries → table_exists126table_exists127. _thread_entries → _not_test127_not_test128. entry_point_flows → _calls_something128_calls_something129. _calls_something → table_exists129table_exists130. _build_site → _coverage130_coverage131. _coverage → parse_contexts131parse_contexts132–133. parse_contexts → _contexts_from_lcov132_contexts_from_lcov +1 more134. _text → check_report_size134check_report_size135. _contexts_from_lcov → _relative135_relative136. parse_contexts → _contexts_from_data_file136_contexts_from_data_file

… 29 steps between

callercallercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyclew/wiki/flowpage.pyother filesother filesother filesother filesother filesopt (line 201)optopt (line 777)optopt (line 203)optbuild_wiki166. flow_page → _executed166_executed167. flow_page → derive_flow167derive_flow168. derive_flow → connect168connect▶ test enters169. derive_flow → _entry_rowids169_entry_rowids170. _entry_rowids → identity_rowids170identity_rowids171–175. identity_rowids → function_candidates171function_candidates +4 more176–179. matching_identity → qualified_name_of176qualified_name_of +3 more180–183. identity_rowids → qualified_name_of180qualified_name_of +3 more184. _entry_rowids → function_candidates184function_candidates185. _entry_rowids → qualified_name_of185qualified_name_of186. _entry_rowids → identity_rowids186identity_rowids187. derive_flow → qualified_name_of187qualified_name_of188. flow_page → slices_of188slices_of189. slices_of → _slice189_slice

… 119 steps between

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyclew/wiki/symbols.pyother filesother filesother filesother filesloop (line 311)looploop (line 332)loopopt (line 335)optloop (line 296)looploop (line 302)loopbuild_wiki309. symbol_pages → symbol_href309symbol_href310. _build_site → parse_features310parse_features311. parse_features → _scenarios311_scenarios▶ test enters312. _scenarios → _tag312_tag313. parse_features → _text313_text314. _build_site → feature_pages314feature_pages315. feature_pages → anchor315anchor

… 29 steps between

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyother filesother filesother filesother filesbuild_wiki345. slice_svg → _hidden345_hidden346. _build_site → parse_junit346parse_junit347. parse_junit → fold_cases347fold_cases▶ test enters348. fold_cases → _folded348_folded349–353. parse_junit → _case_name349_case_name +4 more354. _build_site → _lines_by_test354_lines_by_test355. _lines_by_test → lines_per_test355lines_per_test

… 45 later steps

5 more

tests/test_wiki_markdown.py:60 · its file's page

What it checks (2)

  1. assert ( "Load the data" not in public["Requirements.md"] and "REQ-W-001" in public["Requirements.md"] ) observes _build via public
  2. assert not any("SECRET_CALL_ARG" in t or "SECRET_BODY_MARKER" in t for t in partner.values()) observes _build via partner

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_the_markdown_obeys_the_audience→_build

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_the_markdown_obeys_the_audience · 2 checks_build… 4 calls …load_guard_configREQ-DDB-CONFIG-001 · measured_build… 4 calls …_is_flat_req_listREQ-DDB-CONFIG-003 · measured_build… 3 calls …read_requirements_sectionREQ-DDB-GUARD-012 · measured_build… 7 calls …apply_opt_in_languagesREQ-DDB-GUARD-024 · inferred_build… 4 calls …git_textREQ-DDB-GUARD-027 · inferred_build… 4 calls …console_scriptsREQ-DDB-PIPE-004 · measured_build… 3 calls …connectREQ-DDB-QUERY-001 · measured_build… 3 calls …qualified_name_ofREQ-DDB-QUERY-003 · measured_build… 4 calls …function_candidatesREQ-DDB-QUERY-010 · measured_build… 4 calls …resolve_catalog_pathREQ-DDB-SCHEMA-006 · measured_build… 3 calls …link_idsREQ-DDB-SCHEMA-015 · inferred_buildbuild_markdown_flow_pagederive_flowREQ-DDB-WIKI-001 · measured

and 11 more requirement paths, listed below.

Also reaches 29 requirements

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