v2.14.6: a Gemma 4 call span the parser dropped is restored¶
Tests › tests/unit/inference/gemma4_dropped_tool_text_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/gemma4_dropped_tool_text_test.cpp:32 · its file's page
What it checks (8)
REQUIRE(spans.size() == 1)observesgemma4_dropped_tool_spansviaspansCHECK(spans[0] == kPlainQuoteCall)observesgemma4_dropped_tool_spansviaspansCHECK(content.find(kPlainQuoteCall) != std::string::npos)not attributedCHECK(entropic::gemma4_dropped_tool_spans(raw, raw).empty())observesgemma4_dropped_tool_spansCHECK(entropic::gemma4_dropped_tool_spans("hello", "hello").empty())observesgemma4_dropped_tool_spansREQUIRE(spans.size() == 1)observesgemma4_dropped_tool_spansviaspansCHECK(spans[0] == cut)observesgemma4_dropped_tool_spansviaspansCHECK(entropic::gemma4_dropped_tool_spans(raw, "").size() == 2)observesgemma4_dropped_tool_spans
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
v2.14.6: a Gemma 4 call span the parser dropped is restored→WHEN→gemma4_dropped_tool_spans→REQUIRE→restore_dropped_tool_spansWhat 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.