test_a_spelled_out_include_guard_is_still_not_a_gate¶
Tests › tests/test_gate_polarity.py
What this test is for
Why it exists
`#if !defined(FOO_H)` + `#define FOO_H` is an include guard, like `#ifndef FOO_H`.
Given
- —
When
- —
Then
- ✓ _gates("#if !defined(FOO_H)\n#define FOO_H\nint a;\n#endif\n") equals []
tests/test_gate_polarity.py:52 · its file's page
What it checks (1)
assert _gates("#if !defined(FOO_H)\n#define FOO_H\nint a;\n#endif\n") == []observes_gates
Where the product reaches it
main→query_main→_payload→export_search→corpus_payload→kconfig_space→_gates(flow)
Call flow
test_a_spelled_out_include_guard_is_still_not_a_gate→_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