test_the_index_says_when_it_cannot_decide¶
Tests › tests/test_context_conflicts.py
What this test is for
Why it exists
THE THIRD OUTCOME. An opaque timeout and a runtime context guard are recorded as UNDECIDABLE, never as clean and never as a conflict: promoting either fabricates a finding, dropping it makes an empty conflict list a claim the index has not earned.
Given
rows = _rows(_run(tmp_path))opaque = rows[("undecidable_timeout", "k_sem_take", 43)]
2 more
guarded = rows[("guarded_by_isr_predicate", "k_sleep", 45)]unresolved = rows[("unresolved_lock_identity", "pthread_mutex_lock", 70)]
When
- —
Then
- ✓ opaque[0] equals VERDICT_UNDECIDABLE
- ✓ opaque[1] equals "cfg->wait"
- ✓ guarded[0] equals VERDICT_UNDECIDABLE
- ✓ guarded[1] contains "k_is_in_isr"
- ✓ unresolved[0] equals VERDICT_UNDECIDABLE
tests/test_context_conflicts.py:147 · its file's page
What it checks (5)
assert opaque[0] == VERDICT_UNDECIDABLEnot attributedassert opaque[1] == "cfg->wait", f"the operand is kept verbatim, got {opaque[1]}"not attributedassert guarded[0] == VERDICT_UNDECIDABLEnot attributedassert "k_is_in_isr" in guarded[1], f"the guard is shown, not evaluated; got {guarded[1]}"not attributedassert unresolved[0] == VERDICT_UNDECIDABLEnot attributed
Where the product reaches it
main→_run(flow)
Call flow
test_the_index_says_when_it_cannot_decide→_rows→_runWhat 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 5 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-011 measured
- REQ-DDB-SCHEMA-001 measured
- REQ-DDB-SCHEMA-007 measured
- REQ-DDB-SCHEMA-011 measured
- REQ-DDB-SCHEMA-012 measured