test_node_is_known_when_the_wiki_declares_sources

Tests › tests/guard/test_guard_schema_closed.py

passed Passed in the packaged run.

What this test is for

Why it exists

F11: `wiki.sources` asks authors for `@node`; the gate accepts it there, and only there.

Given

  1. sources = "wiki:\n sources:\n - {name: keys, path: keys.toml}\n"
→

When

  1. —
→

Then

  1. ✓ _unknown_tags(tmp_path, sources, "node") equals []
  2. ✓ _unknown_tags(tmp_path, "guard: {}\n", "node") differs from []

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.

`main` (clew/guard/main.py) · 23 of 357 steps

… 16 earlier steps

program launcherprogram launcherprogram launcherprogram launcherprogram launcherclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyother filesother filesother filesother filesother filesopt (line 733)optopt (line 705)optloop (line 417)loopalt (line 421)altloop (line 793)loopopt (line 795)optmain17. _run → _setup_logging17_setup_logging18. _run → load_config18load_config19. load_config → refuse_doxygen_guard_leftovers19refuse_doxygen_guard_leftovers▶ test enters20. load_config → _fresh_defaults20_fresh_defaults21. load_config → read_requirements_section21read_requirements_section22–25. read_requirements_section → _validate_node22_validate_node +3 more26. _validate_node → _validate_dict_node26_validate_dict_node27–28. _validate_dict_node → _config_path27_config_path +1 more29. _suggest_key → list29list30. _validate_dict_node → _validate_node30_validate_node31. load_config → _shared_facts31_shared_facts32. _shared_facts → list32list33–43. load_config → read_guard_section33read_guard_section +10 more44–45. apply_opt_in_languages → deep_merge44deep_merge +1 more46. load_config → deep_merge46deep_merge47. _run → run_precommit47run_precommit48. run_precommit → report_dir48report_dir

… 161 steps between

program launcherprogram launcherprogram launcherprogram launcherclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/main.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/checks.pyclew/guard/checks.pyclew/guard/checks.pyclew/guard/checks.pyother filesother filesother filesother filesloop (line 1337)loopopt (line 1345)optloop (line 252)loopmain210. check_bus_tags → _exemption_hint210_exemption_hint211. validate_file → check_unknown_tags211check_unknown_tags212. check_unknown_tags → get_validate212get_validate▶ test enters213–216. check_unknown_tags → _event_tags213_event_tags +3 more217. _edit_distance → list217list218. validate_file → check_removed_tags218check_removed_tags219. validate_file → check_exemption_reasons219check_exemption_reasons

… 138 later steps

3 more

tests/guard/test_guard_schema_closed.py:143 · its file's page

What it checks (2)

  1. assert _unknown_tags(tmp_path, sources, "node") == [] observes _unknown_tags
  2. assert _unknown_tags(tmp_path, "guard: {}\n", "node") != [] observes _unknown_tags

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_node_is_known_when_the_wiki_declares_sources→_unknown_tags

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_node_is_known_when_the_wiki_declares_sources · 2 checks_unknown_tagscheck_unknown_tagsREQ-DDB-GUARD-001 · measured_unknown_tagsload_configREQ-DDB-GUARD-012 · measured_unknown_tagsload_configapply_opt_in_languagesREQ-DDB-GUARD-024 · measured
Also reaches 3 requirements

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