gh#134 exactly one grammar source constrains a decode

Tests › tests/unit/inference/grammar_source_invariant_test.cpp

absent Not in the packaged run: no test report names it.

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)

  1. CHECK(resolve_grammar_source("", "") == GrammarSource::none) observes resolve_grammar_source
  2. CHECK_FALSE(grammar_sources_collide("", "")) observes grammar_sources_collide
  3. CHECK(resolve_grammar_source("root ::= \"x\"", "") == GrammarSource::request) observes resolve_grammar_source
  4. CHECK_FALSE(grammar_sources_collide("root ::= \"x\"", "")) observes grammar_sources_collide
  5. CHECK(resolve_grammar_source("", "root ::= \"call\"") == GrammarSource::tool_call) observes resolve_grammar_source
  6. CHECK_FALSE(grammar_sources_collide("", "root ::= \"call\"")) observes grammar_sources_collide
  7. CHECK(resolve_grammar_source(req, tool) == GrammarSource::request) observes resolve_grammar_source
  8. CHECK(grammar_sources_collide(req, tool)) observes grammar_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_collide

What 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.

gh#134 exactly one grammar source constrains a decode · 8 checksgrammar_sources_collideREQ-INFER-008 · inferredresolve_grammar_sourceREQ-TYPE-004 · inferred
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.