test_a_compound_or_elif_condition_stays_unevaluated¶
Tests › tests/test_gate_polarity.py
What this test is for
Why it exists
`&&` and `#elif` keep `if_expr`: their presence depends on more than one symbol.
Given
rows = _gates("#if defined(A) && defined(B)\nint a;\n#elif defined(C)\nint c;\n#endif\n")
When
- —
Then
- ✓ {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)
assert {form for _m, form, _l, _e in rows} == {"if_expr"}, rowsobserves_gatesviarows
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→_gatesWhat 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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-007 measured