test_a_compound_or_elif_condition_stays_unevaluated

Tests › tests/test_gate_polarity.py

passed Passed in the packaged run.

What this test is for

Why it exists

`&&` and `#elif` keep `if_expr`: their presence depends on more than one symbol.

Given

  1. rows = _gates("#if defined(A) && defined(B)\nint a;\n#elif defined(C)\nint c;\n#endif\n")
→

When

  1. —
→

Then

  1. ✓ {form for _m, form, _l, _e in rows} equals {"if_expr"}

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

What it checks (1)

  1. assert {form for _m, form, _l, _e in rows} == {"if_expr"}, rows observes _gates via rows

Where the product reaches it

  • main → query_main → _payload → export_search → corpus_payload → kconfig_space → _gates (flow)

Call flow

test_a_compound_or_elif_condition_stays_unevaluated→_gates

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_compound_or_elif_condition_stays_unevaluated · 1 checks_gatesgate_harvesterREQ-DDB-PIPE-007 · measured
Also reaches 1 requirement

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