gh#159 a turn whose whole output was a tool call is not a fault

Tests › tests/unit/inference/empty_content_diagnosis_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/empty_content_diagnosis_test.cpp:116 · its file's page

What it checks (10)

  1. CHECK(cause == EmptyContentCause::tool_call_only) observes diagnose_empty_content via cause
  2. CHECK(msg.find("reasoning") == std::string::npos) observes explain_empty_content via msg
  3. CHECK(msg.find("not converging") == std::string::npos) observes explain_empty_content via msg
  4. CHECK(msg.find("max_tokens") == std::string::npos) observes explain_empty_content via msg
  5. CHECK_FALSE(explain_empty_content(cause).empty()) observes explain_empty_content
  6. CHECK(cause == EmptyContentCause::model_stopped) observes diagnose_empty_content via cause
  7. CHECK(msg.find("unterminated reasoning block") != std::string::npos) observes explain_empty_content via msg
  8. CHECK(msg.find("not converging") != std::string::npos) observes explain_empty_content via msg
  9. CHECK(diagnose_empty_content(false, true, "stop", true) == EmptyContentCause::not_empty) observes diagnose_empty_content
  10. CHECK(diagnose_empty_content(true, true, "length", true) == EmptyContentCause::tool_call_only) observes diagnose_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_content

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#159 a turn whose whole output was a tool call is not a fault · 10 checksdiagnose_empty_contentREQ-INFER-010 · inferred
Also reaches 1 requirement

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