test_no_file_and_no_section_both_mean_nothing_declared

Tests › tests/test_guard_config_index.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. load_guard_config(tmp_path)
  2. _write(tmp_path, "index_scope:\n roots: [src]\n")
→

Then

  1. ✓ load_guard_config(tmp_path) is None
  2. ✓ load_guard_config(tmp_path) is None

tests/test_guard_config_index.py:61 · its file's page

What it checks (2)

  1. assert load_guard_config(tmp_path) is None observes load_guard_config
  2. assert load_guard_config(tmp_path) is None, ( "a .clew.yaml with no guard: section declares nothing to the gate" ) observes load_guard_config

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_no_file_and_no_section_both_mean_nothing_declared→load_guard_config→_write

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_no_file_and_no_section_both_mean_nothing_declared · 2 checksload_guard_configREQ-DDB-CONFIG-001 · measuredload_guard_configread_guard_configread_requirements_sectionREQ-DDB-GUARD-012 · measuredload_guard_configread_guard_configload_configapply_opt_in_languagesREQ-DDB-GUARD-024 · inferred
Also reaches 3 requirements

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