test_unsupported_extension_returns_none

Tests › tests/guard/test_guard_main.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Given

  1. rs_file = tmp_path / "lib.rs"
  2. rs_file.write_text("fn main() {}")
→

When

  1. result = parse_source_file(str(rs_file), CONFIG_DEFAULTS)
→

Then

  1. ✓ result 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) · 4 of 357 steps

… 101 earlier steps

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.pyother filesother filesother filesother filesmain102. gate_exclusion → binary_file102binary_file103. validate_file → parse_source_file103parse_source_file104. parse_source_file → parse_source_file_with_content104parse_source_file_with_content▶ test enters105–107. parse_source_file_with_content → parse_content_for_file105parse_content_for_file +2 more108–109. parse_content_for_file → resolve_parse_settings108resolve_parse_settings +1 more

… 248 later steps

tests/guard/test_guard_main.py:293 · its file's page

What it checks (1)

  1. assert result is None observes parse_source_file via result

Where the product reaches it

  • main → _run → run_precommit → _validate_files → validate_file → parse_source_file (flow)

Call flow

test_unsupported_extension_returns_none→parse_source_file

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_unsupported_extension_returns_none · 1 checksparse_source_fileparse_source_file_with_contentparse_content_for_fileget_language_configREQ-DDB-GUARD-013 · measuredparse_source_fileREQ-DDB-GUARD-018 · measuredparse_source_file… 6 calls …parse_doxygen_tagsREQ-DDB-GUARD-019 · inferredparse_source_fileparse_source_file_with_contentparse_content_for_filelanguage_for_fileREQ-DDB-GUARD-020 · inferredparse_source_file… 6 calls …_find_python_docstring_blockREQ-DDB-GUARD-021 · inferredparse_source_file… 5 calls …_is_rust_test_itemREQ-DDB-GUARD-024 · inferredparse_source_file… 5 calls …_js_returns_voidREQ-DDB-GUARD-025 · inferred
Also reaches 7 requirements

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