gh#106 observe: QAT thinking-model tool-call structure¶
Tests › tests/model/test_gh106_qat_thinking.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/model/test_gh106_qat_thinking.cpp:20 · its file's page
What it checks (8)
REQUIRE(backend.load(cfg))observesloadREQUIRE(backend.activate())observesactivateREQUIRE(captured)observeshas_common_chat_paramsviacapturedREQUIRE(gen.error_code == 0)observesgenerateviagenREQUIRE(parsed.tool_calls.size() >= 1)observesparse_responseviaparsedCHECK(parsed.tool_calls[0].name.find("read_file") != std::string::npos)observesparse_responseviaparsedCHECK(parsed.content.find("<|channel>") == std::string::npos)observesparse_responseviaparsedCHECK(parsed.content.find("<channel|>") == std::string::npos)observesparse_responseviaparsed
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#106 observe: QAT thinking-model tool-call structure→model_path→REQUIRE→load→activate→set_active_tools→read_file_tool_json→generate→has_common_chat_params→parse_response→deactivate→unloadWhat 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 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-INFER-002 inferred
- REQ-INFER-009 inferred
- REQ-INFER-012 inferred