test_a_missing_named_header_is_still_recorded

Tests › tests/test_preprocessor.py

passed Passed in the packaged run.

What this test is for

Why it exists

The misspelled-path case, and the reason `as_meta` records a macro count of ZERO rather than dropping it. A declaration that produced nothing is a finding; recorded as absent it would be indistinguishable from a repo that declared nothing at all.

Given

  1. root = tmp_path / "repo"
  2. root.mkdir()
→

When

  1. config = resolve_preprocessor( root, {SECTION_PREPROCESSOR: {"config_header": "include/typo_config.h"}} )
→

Then

  1. ✓ config.declared holds
  2. ✓ config.source equals SOURCE_CONFIG_HEADER
  3. ✓ config.as_meta()["macro_count"] equals "0"

tests/test_preprocessor.py:583 · its file's page

What it checks (3)

  1. assert config.declared observes resolve_preprocessor via config
  2. assert config.source == SOURCE_CONFIG_HEADER observes resolve_preprocessor via config
  3. assert config.as_meta()["macro_count"] == "0", "a measured zero must be persisted" observes resolve_preprocessor via 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_a_missing_named_header_is_still_recorded→resolve_preprocessor

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_a_missing_named_header_is_still_recorded · 3 checksresolve_preprocessorREQ-DDB-CONFIG-004 · measuredresolve_preprocessor_resolve_config_header_named_config_headerwithin_repoREQ-DDB-PIPE-014 · measured
Also reaches 2 requirements

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