passed Passed in the packaged run.
What this test is for Why it exists
ONE SITE PER KEY, and the diff names what changed between two keys: nodes added or removed (the key space) and requirement tier changes.
Given
repo, db, _kv = trace_repoout = tmp_path / "sites"→ When
build_wiki(repo, db, out, version="v1")(repo / "model" / "keys.toml").write_text(_KEYS.replace("net.retries", "net.backoff"))(repo / "build" / "junit.xml").write_text(_JUNIT.replace("/>", "><failure/></testcase>"))3 more build_wiki(repo, db, out, version="v2")diff = diff_versions(out, "v1", "v2")page = (out / "diff-v1-v2.html").read_text()→ Then
✓ (out / "v1" / "html" / "index.html").is_file() holds✓ (out / "v2" / "html" / "index.html").is_file() holds✓ [v["key"] for v in json.loads((out / "versions.json").read_text())] equals ["v1", "v2"]✓ (out / "index.html").read_text() contains "v1"✓ diff["nodes_added"] equals ["keys:net.backoff"]✓ diff["nodes_removed"] equals ["keys:net.retries"]✓ diff["requirements_changed"] contains {"id": "REQ-W-001", "from": "PASS", "to": "GAP"}✓ page contains "keys:net.backoff"✓ page contains "REQ-W-001"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.
callercaller callercaller caller caller caller caller clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.py clew/wiki/build.py clew/wiki/build.py clew/wiki/build.py clew/wiki/config.pyclew/wiki/config.py clew/wiki/config.pyclew/wiki/config.py clew/wiki/config.py clew/wiki/config.py clew/wiki/config.py clew/wiki/config.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/_common.py clew/query/_common.py clew/query/_common.py clew/query/_common.py clew/wiki/symbols.pyclew/wiki/symbols.py clew/wiki/symbols.pyclew/wiki/symbols.py clew/wiki/symbols.py clew/wiki/symbols.py clew/wiki/symbols.py clew/wiki/symbols.py other filesother files other filesother files other files other files other files other files try (line 708) try opt (line 445) opt loop (line 417) loop opt (line 420) opt alt (line 421) alt loop (line 135) loop loop (line 632) loop try (line 752) try loop (line 1312) loop opt (line 1314) opt try (line 1123) try try (line 1155) try loop (line 63) loop loop (line 64) loop loop (line 195) loop loop (line 281) loop opt (line 611) opt loop (line 43) loop loop (line 223) loop loop (line 224) loop loop (line 74) loop loop (line 78) loop try (line 146) try opt (line 529) opt opt (line 531) opt loop (line 569) loop opt (line 571) opt loop ×2 (line 1156) loop ×2 build_wiki 1. build_wiki → load_wiki_config 1 load_wiki_config ▶ test enters 2–6. load_wiki_config → _read_section 2 _read_section +4 more 7. _requirements_section → read_requirements_section 7 read_requirements_section 8. read_requirements_section → _validate_node 8 _validate_node 9–11. _validate_node → _validate_map_of 9 _validate_map_of +2 more 12–13. _validate_node → _validate_dict_node 12 _validate_dict_node +1 more 14–16. _validate_dict_node → _suggest_key 14 _suggest_key +2 more 17. _validate_dict_node → _validate_node 17 _validate_node 18–21. load_wiki_config → _top_level 18 _top_level +3 more 22. _strings → all 22 all 23–25. all → _events 23 _events +2 more 26–28. load_wiki_config → _strings 26 _strings +2 more 29. _audiences → _unknown 29 _unknown 30–37. load_wiki_config → _pinned_catalogs 30 _pinned_catalogs +7 more 38. _declared_report → read_guard_section 38 read_guard_section 39–41. load_wiki_config → _issues 39 _issues +2 more 42. _sbom → all 42 all 43–47. load_wiki_config → _one_of 43 _one_of +4 more 48. _comments → all 48 all 49–55. load_wiki_config → _doc_tags 49 _doc_tags +6 more 56. build_wiki → report_limit 56 report_limit 57. build_wiki → _build_site 57 _build_site 58. _build_site → load_wiki_config 58 load_wiki_config 59. _build_site → _audience 59 _audience 60. _build_site → valid_key 60 valid_key 61. _build_site → _commit 61 _commit 62. _commit → git_argv 62 git_argv 63–64. git_argv → _no_ext_diff 63 _no_ext_diff +1 more 65. _build_site → commit_published 65 commit_published 66–67. commit_published → git_argv 66 git_argv ×2 68. _build_site → gather 68 gather 69. gather → link_kind 69 link_kind 70. _build_site → _milestones 70 _milestones 71. _milestones → roadmap_milestones 71 roadmap_milestones 72. roadmap_milestones → list 72 list 73. _build_site → _burndown 73 _burndown 74. _burndown → burndown 74 burndown 75–76. burndown → _same 75 _same +1 more 77. _milestone_marks → _same 77 _same 78. _burndown → series 78 series 79–80. series → _versions 79 _versions +1 more 81. _build_site → _requirements_of 81 _requirements_of 82. _build_site → gather 82 gather 83. _build_site → load_traces 83 load_traces 84. load_traces → redact_local_paths 84 redact_local_paths 85. _build_site → root_name 85 root_name 86. root_name → spans_of 86 spans_of 87. _build_site → _test_flows 87 _test_flows 88. _test_flows → connect 88 connect 89. _test_flows → test_functions 89 test_functions 90. test_functions → table_exists 90 table_exists 91. _build_site → _all_flows 91 _all_flows 92. _all_flows → list 92 list 93. _all_flows → entry_point_flows 93 entry_point_flows 94. entry_point_flows → connect 94 connect 95–97. entry_point_flows → _scripts 95 _scripts +2 more 98. _read_toml → require_toml_module 98 require_toml_module 99. require_toml_module → toml_module 99 toml_module ▶ test enters 100. console_scripts → _nested 100 _nested 101. _scripts → _defined 101 _defined 102–104. entry_point_flows → _mains 102 _mains +2 more 105. _declared_entry_patterns → table_exists 105 table_exists 106–111. _declared_entry_patterns → load_declaration 106 load_declaration +5 more 112–113. _checked_section → _checked_list_section 112 _checked_list_section +1 more 114–116. _checked_section → _checked_requirements 114 _checked_requirements +2 more 117. _checked_tests → _checked_list_section 117 _checked_list_section 118. _checked_tests → 118 … 1 call not run … 1 step between
callercaller callercaller clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.pyclew/wiki/build.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py other filesother files other filesother files loop (line 43) loop opt (line 200) opt build_wiki 120–121. check_manifest_document → _checked_document 120 _checked_document +1 more 122. _checked_section → _check_section_keys 122 _check_section_keys 123. _mains → _not_test 123 _not_test 124. _not_test → table_exists 124 table_exists 125. entry_point_flows → _thread_entries 125 _thread_entries 126. _thread_entries → table_exists 126 table_exists 127. _thread_entries → _not_test 127 _not_test 128. entry_point_flows → _calls_something 128 _calls_something 129. _calls_something → table_exists 129 table_exists 130. _build_site → _coverage 130 _coverage 131. _coverage → parse_contexts 131 parse_contexts 132–133. parse_contexts → _contexts_from_lcov 132 _contexts_from_lcov +1 more … 6 steps between
callercaller callercaller caller clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/_common.py clew/wiki/flowpage.pyclew/wiki/flowpage.py clew/wiki/flowpage.pyclew/wiki/flowpage.py clew/wiki/flowpage.py other filesother files other filesother files other files loop (line 204) loop opt (line 373) opt loop (line 373) loop loop (line 282) loop opt (line 442) opt loop (line 122) loop loop (line 207) loop try (line 209) try build_wiki 140–141. parse_contexts → _relative 140 _relative +1 more 142. _build_site → build_graph 142 build_graph 143. build_graph → connect 143 connect 144. build_graph → _tested_calls 144 _tested_calls 145. _tested_calls → table_exists 145 table_exists 146. build_graph → _links 146 _links 147. _links → table_exists 147 table_exists 148. _links → _bump 148 _bump 149. _links → table_exists 149 table_exists 150. _links → 150 … 1 call not run 151. build_graph → _threads 151 _threads 152. _threads → table_exists 152 table_exists 153. build_graph → _vendor_calls_in 153 _vendor_calls_in 154. _vendor_calls_in → table_exists 154 table_exists 155. _vendor_calls_in → is_vendor 155 is_vendor 156–157. build_graph → _components 156 _components +1 more 158. _components → _impact_into 158 _impact_into 159–164. build_graph → is_vendor 159 is_vendor +5 more 165. _build_site → flow_page 165 flow_page 166. flow_page → _executed 166 _executed … 5 steps between
callercaller callercaller clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py build_wiki 172–173. function_candidates → table_exists 172 table_exists +1 more 174. _test_scope_term → table_exists 174 table_exists ▶ test enters 175–176. function_candidates → matching_identity 175 matching_identity +1 more … 49 steps between
callercaller callercaller clew/wiki/symbols.pyclew/wiki/symbols.py clew/wiki/symbols.pyclew/wiki/symbols.py clew/wiki/flowpage.pyclew/wiki/flowpage.py clew/wiki/flowpage.pyclew/wiki/flowpage.py other filesother files other filesother files loop (line 290) loop build_wiki 226. flow_page → _badges 226 _badges 227. _badges → page_of 227 page_of 228. page_of → _key 228 _key 229. flow_page → code 229 code 230. flow_page → symbol_href 230 symbol_href 231–232. symbol_href → anchor 231 anchor +1 more 233. flow_page → code 233 code 234. flow_page → table 234 table … 16 steps between
callercaller callercaller caller clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/query/_common.py clew/wiki/symbols.pyclew/wiki/symbols.py clew/wiki/symbols.pyclew/wiki/symbols.py clew/wiki/symbols.py clew/wiki/activity.pyclew/wiki/activity.py clew/wiki/activity.pyclew/wiki/activity.py clew/wiki/activity.py other filesother files other filesother files other files loop (line 355) loop loop (line 207) loop try (line 209) try loop (line 173) loop loop (line 132) loop loop (line 360) loop opt (line 372) opt opt (line 424) opt opt (line 374) opt opt (line 64) opt loop (line 187) loop opt (line 191) opt build_wiki 251. trace_for → spans_of 251 spans_of 252. _build_site → _actor_of 252 _actor_of 253. _build_site → symbol_pages 253 symbol_pages 254. symbol_pages → connect 254 connect 255–257. symbol_pages → test_functions 255 test_functions +2 more 258. _owners_by_file → file_owners 258 file_owners 259. file_owners → table_exists 259 table_exists 260. _owners_by_file → list 260 list 261. symbol_pages → table_exists 261 table_exists 262–263. symbol_pages → _section 262 _section +1 more 264. _section → source_url 264 source_url 265–266. _section → _near 265 _near +1 more 267. _split_callers → list 267 list 268–270. _section → _test_block 268 _test_block +2 more 271. _test_block → verifies_block 271 verifies_block 272. verifies_block → tag 272 tag 273. _test_block → assertions 273 assertions 274. _section → _activity 274 _activity 275. _activity → steps_of 275 steps_of 276–278. steps_of → _py_steps 276 _py_steps +2 more 279–280. _py_block → _py_block 279 _py_block +1 more … 3 steps between
callercaller callercaller clew/wiki/activity.pyclew/wiki/activity.py clew/wiki/activity.pyclew/wiki/activity.py loop (line 187) loop elif (line 195) elif opt (line 160) opt build_wiki 284. _py_block → _py_block 284 _py_block 285. _py_block → 285 … 3 calls not run 286. _py_steps → _without_docstring 286 _without_docstring 287–288. steps_of → _c_steps 287 _c_steps +1 more … 6 steps between
callercaller callercaller clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.pyclew/wiki/build.py clew/wiki/symbols.pyclew/wiki/symbols.py clew/wiki/symbols.pyclew/wiki/symbols.py clew/wiki/activity.pyclew/wiki/activity.py clew/wiki/activity.pyclew/wiki/activity.py other filesother files other filesother files loop (line 320) loop alt (line 347) alt opt (line 386) opt loop (line 132) loop loop (line 311) loop loop (line 296) loop loop (line 302) loop build_wiki 295. _c_block → _collapse 295 _collapse 296. _c_block → 296 … 1 call not run 297. _activity → anchor 297 anchor 298. _activity → activity_svg 298 activity_svg 299–301. activity_svg → _edge 299 _edge +2 more 302. _section → md_title 302 md_title 303–309. symbol_pages → _file_header 303 _file_header +6 more 310. _build_site → parse_features 310 parse_features 311–313. parse_features → _scenarios 311 _scenarios +2 more 314. _build_site → feature_pages 314 feature_pages 315. feature_pages → anchor 315 anchor 316. feature_pages → render_scenario 316 render_scenario … 6 steps between
callercaller callercaller clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.pyclew/wiki/build.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/wiki/symbols.pyclew/wiki/symbols.py clew/wiki/symbols.pyclew/wiki/symbols.py other filesother files other filesother files loop (line 296) loop loop (line 302) loop build_wiki 323. feature_pages → symbol_href 323 symbol_href 324. feature_pages → page_for 324 page_for 325. _build_site → test_pages 325 test_pages 326. test_pages → connect 326 connect 327. test_pages → _test_definitions 327 _test_definitions 328. _test_definitions → table_exists 328 table_exists 329. test_pages → _briefs 329 _briefs 330. _briefs → strip_xml 330 strip_xml 331–336. test_pages → load_modes 331 load_modes +5 more 337–338. _exercises → _player_controls 337 _player_controls +1 more … 5 steps between
callercaller callercaller clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.pyclew/wiki/build.py clew/query/_common.pyclew/query/_common.py clew/query/_common.pyclew/query/_common.py clew/wiki/symbols.pyclew/wiki/symbols.py clew/wiki/symbols.pyclew/wiki/symbols.py other filesother files other filesother files loop (line 151) loop loop (line 193) loop loop (line 195) loop build_wiki 344–345. slice_svg → flow_svg 344 flow_svg +1 more 346. _build_site → parse_junit 346 parse_junit 347–353. parse_junit → fold_cases 347 fold_cases +6 more 354. _build_site → _lines_by_test 354 _lines_by_test 355. _lines_by_test → lines_per_test 355 lines_per_test 356. _build_site → _slices_by_test 356 _slices_by_test 357. _build_site → write_quick_views 357 write_quick_views 358. write_quick_views → connect 358 connect 359. write_quick_views → _briefs 359 _briefs 360. write_quick_views → _facts_of 360 _facts_of 361. write_quick_views → symbol_href 361 symbol_href … 11 steps between
callercaller callercaller clew/wiki/build.pyclew/wiki/build.py clew/wiki/build.pyclew/wiki/build.py other filesother files other filesother files loop (line 193) loop opt (line 202) opt loop (line 398) loop opt (line 136) opt opt (line 139) opt build_wiki 373. _reqs → page_of 373 page_of 374. write_quick_views → plural 374 plural 375. _build_site → find_decisions 375 find_decisions 376–379. find_decisions → parse_adr 376 parse_adr +3 more 380. _build_site → _fetch_issues 380 _fetch_issues 381. _fetch_issues → provider_for 381 provider_for 382. _fetch_issues → link_issues 382 link_issues 383. _build_site → _issues_into 383 _issues_into 384. _build_site → requirements_page 384 requirements_page 385–390. requirements_page → list 385 list +5 more 391–394. _ears_line → catalog_value 391 catalog_value +3 more 395–396. requirement_pages → _what 395 _what +1 more 397. _what → md_title 397 md_title 398–400. _what → first 398 first +2 more 8 more tests/test_wiki_trace_extensions.py:368 · its file's page
What it checks (8) assert (out / "v1" / "html" / "index.html").is_file() not attributed assert (out / "v2" / "html" / "index.html").is_file() not attributed assert [v["key"] for v in json.loads((out / "versions.json").read_text())] == ["v1", "v2"] not attributed assert "v1" in (out / "index.html").read_text() not attributed assert diff["nodes_added"] == ["keys:net.backoff"] observes diff_versions via diff assert diff["nodes_removed"] == ["keys:net.retries"] observes diff_versions via diff assert {"id": "REQ-W-001", "from": "PASS", "to": "GAP"} in diff["requirements_changed"] observes diff_versions via diff assert "keys:net.backoff" in page and "REQ-W-001" in page not attributed Where the product reaches it build_wiki is the entry of the flow (flow) 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.
and 41 more requirement paths, listed below.
Also reaches 58 requirements Its run touches their code; that is reach, not proof.