gh#134 exactly one grammar source constrains a decode¶
Tests › tests/unit/inference/grammar_source_invariant_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/grammar_source_invariant_test.cpp:206 · its file's page
What it checks (8)
CHECK(resolve_grammar_source("", "") == GrammarSource::none)observesresolve_grammar_sourceCHECK_FALSE(grammar_sources_collide("", ""))observesgrammar_sources_collideCHECK(resolve_grammar_source("root ::= \"x\"", "") == GrammarSource::request)observesresolve_grammar_sourceCHECK_FALSE(grammar_sources_collide("root ::= \"x\"", ""))observesgrammar_sources_collideCHECK(resolve_grammar_source("", "root ::= \"call\"") == GrammarSource::tool_call)observesresolve_grammar_sourceCHECK_FALSE(grammar_sources_collide("", "root ::= \"call\""))observesgrammar_sources_collideCHECK(resolve_grammar_source(req, tool) == GrammarSource::request)observesresolve_grammar_sourceCHECK(grammar_sources_collide(req, tool))observesgrammar_sources_collide
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
gh#134 exactly one grammar source constrains a decode→resolve_grammar_source→grammar_sources_collideWhat 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.
- REQ-INFER-008 inferred
- REQ-TYPE-004 inferred