test_unknown_extension

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. config = CONFIG_DEFAULTS
→

When

  1. result = get_language_config(config, "script.rs")
→

Then

  1. ✓ result is None

What this test is for

Why it exists

The test says nothing about why.

Given

  1. —
→

When

  1. language_for_extension(".zig")
→

Then

  1. ✓ language_for_extension(".zig") is None

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

… 104 earlier steps

program launcherprogram launcherprogram launcherprogram launcherclew/guard/config.pyclew/guard/config.pyclew/guard/config.pyclew/guard/config.pymain105–106. parse_source_file_with_content → parse_content_for_file105parse_content_for_file +1 more107. get_language_config → get_validate107get_validate▶ test enters108–109. parse_content_for_file → resolve_parse_settings108resolve_parse_settings +1 more

… 248 later steps

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

What it checks (1)

  1. assert result is None observes get_language_config via result

Where the product reaches it

  • main → _run → run_precommit → _validate_files → validate_file → parse_content_for_file → get_language_config (flow)

Call flow

test_unknown_extension→get_language_config

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_unknown_extension · 1 checksget_language_configREQ-DDB-GUARD-013 · measured

tests/guard/test_guard_ts_languages.py:77 · its file's page

What it checks (1)

  1. assert language_for_extension(".zig") is None observes language_for_extension

Where the product reaches it

  • main → _run → run_precommit → _validate_files → validate_file → parse_content_for_file → language_for_file → language_for_extension (flow)

Call flow

test_unknown_extension→language_for_extension

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_unknown_extension · 1 checkslanguage_for_extensionREQ-DDB-GUARD-020 · measured
Also reaches 2 requirements

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