test_open_dict_allows_custom_languages

Tests › tests/guard/test_guard_config.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Given

  1. —
→

When

  1. errors = validate_config_schema( {"validate": {"languages": {"rust": {"extensions": [".rs"]}}}} )
→

Then

  1. ✓ errors equals []

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) · 11 of 357 steps

… 20 earlier steps

program launcherprogram launcherprogram launcherprogram launcherclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyother filesother filesother filesother filesopt (line 445)optloop (line 417)loopopt (line 420)optalt (line 421)altmain21–22. load_config → read_requirements_section21read_requirements_section +1 more23–27. _validate_node → _validate_map_of23_validate_map_of +4 more28. _validate_dict_node → _suggest_key28_suggest_key29. _suggest_key → list29list30. _validate_dict_node → _validate_node30_validate_node31. load_config → _shared_facts31_shared_facts32. _shared_facts → list32list

… 1 step between

program launcherprogram launcherprogram launcherprogram launcherclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyopt (line 715)optmain34–35. load_config → _fresh_defaults34_fresh_defaults +1 more36. validate_config_schema → _moved_keys36_moved_keys▶ test enters37–40. validate_config_schema → _exclude_errors37_exclude_errors +3 more41–42. load_config → _log_declared_sections41_log_declared_sections +1 more

… 315 later steps

3 more

tests/guard/test_guard_config.py:234 · its file's page

What it checks (1)

  1. assert errors == [] observes validate_config_schema via errors

Where the product reaches it

  • main → _run → load_config → validate_config_schema (flow)

Call flow

test_open_dict_allows_custom_languages→validate_config_schema

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_open_dict_allows_custom_languages · 1 checksvalidate_config_schemaREQ-DDB-GUARD-012 · measured
Also reaches 1 requirement

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