test_the_shipped_header_decides_over_an_alternative_profile

Tests › tests/test_gate_polarity.py

passed Passed in the packaged run.

What this test is for

Why it exists

THE QUERY LAYER'S RULE, AT BUILD TIME TOO (2.0.0, T5 served). `query.kconfig._with_defaults` lets the shipped header settle a disagreement with an alternative profile, so a dossier said MBEDTLS_PLATFORM_MEMORY is off while `macro_refs`, deciding by unanimity alone, kept both `mbedtls_calloc` definitions. One rule now serves both (`query._common.decided_default`).

Given

  1. conn = _macro_db(tmp_path)
  2. conn.execute( "INSERT INTO config_defaults VALUES ('MEM', 'on', '', 'configs/profile.h', 1, '', 'heuristic')" )
→

When

  1. —
→

Then

  1. ✓ macro_definitions(conn)["mem_calloc"] equals [11]

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.

Look up one name: everything the index holds about it · 1 of 226 steps

… 69 earlier steps

callercallercallercallerclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyclew/query/_common.pyother filesother filesother filesother filesloop (line 660)loopdossier70. _with_defaults → _defaults_for_macros70_defaults_for_macros71. _with_defaults → decided_default71decided_default72. decided_default → is_shipped_config72is_shipped_config▶ test enters73. _with_defaults → _in_default_build73_in_default_build74. _macro_def → _macro_params74_macro_params

… 152 later steps

2 more

tests/test_gate_polarity.py:185 · its file's page

What it checks (1)

  1. assert macro_definitions(conn)["mem_calloc"] == [11], "shipped off wins over a configs/ on" observes _macro_db via conn

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_the_shipped_header_decides_over_an_alternative_profile→_macro_db

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.

Also reaches 2 requirements

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