gh#159 a turn whose whole output was a tool call is not a fault¶
Tests › tests/unit/inference/empty_content_diagnosis_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/empty_content_diagnosis_test.cpp:116 · its file's page
What it checks (10)
CHECK(cause == EmptyContentCause::tool_call_only)observesdiagnose_empty_contentviacauseCHECK(msg.find("reasoning") == std::string::npos)observesexplain_empty_contentviamsgCHECK(msg.find("not converging") == std::string::npos)observesexplain_empty_contentviamsgCHECK(msg.find("max_tokens") == std::string::npos)observesexplain_empty_contentviamsgCHECK_FALSE(explain_empty_content(cause).empty())observesexplain_empty_contentCHECK(cause == EmptyContentCause::model_stopped)observesdiagnose_empty_contentviacauseCHECK(msg.find("unterminated reasoning block") != std::string::npos)observesexplain_empty_contentviamsgCHECK(msg.find("not converging") != std::string::npos)observesexplain_empty_contentviamsgCHECK(diagnose_empty_content(false, true, "stop", true) == EmptyContentCause::not_empty)observesdiagnose_empty_contentCHECK(diagnose_empty_content(true, true, "length", true) == EmptyContentCause::tool_call_only)observesdiagnose_empty_content
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#159 a turn whose whole output was a tool call is not a fault→diagnose_empty_content→explain_empty_contentWhat 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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-INFER-010 inferred