gh#134 every declared grammar source is wired to the sampler¶
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:49 · its file's page
What it checks (13)
CHECK(entropic::grammar_source_count() == 4)observesgrammar_source_countCHECK(resolve_grammar_source("g", "") == GrammarSource::request)observesresolve_grammar_sourceCHECK(resolve_grammar_source("g", "", /*from_tier=*/true) == GrammarSource::tier)observesresolve_grammar_sourceCHECK(resolve_grammar_source("", "g") == GrammarSource::tool_call)observesresolve_grammar_sourceCHECK(resolve_grammar_source("", "") == GrammarSource::none)observesresolve_grammar_sourceCHECK(std::string(grammar_source_name(GrammarSource::none)) == "none")observesgrammar_source_nameCHECK(std::string(grammar_source_name(GrammarSource::request)) == "request")observesgrammar_source_nameCHECK(std::string(grammar_source_name(GrammarSource::tier)) == "tier")observesgrammar_source_nameCHECK(std::string(grammar_source_name(GrammarSource::tool_call)) == "tool_call")observesgrammar_source_nameCHECK(entropic::is_request_grammar(GrammarSource::request))observesis_request_grammarCHECK(entropic::is_request_grammar(GrammarSource::tier))observesis_request_grammarCHECK_FALSE(entropic::is_request_grammar(GrammarSource::tool_call))observesis_request_grammarCHECK_FALSE(entropic::is_request_grammar(GrammarSource::none))observesis_request_grammar
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 every declared grammar source is wired to the sampler→grammar_source_count→resolve_grammar_source→grammar_source_name→is_request_grammarWhat 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