| 2095 | TEST_CASE(ServerUnitFixture, test_emitter_content_only_no_thinking) { |
| 2096 | auto em = make_emitter(ApiFormat::OPENAI_CHAT); |
| 2097 | em.emit_start(); |
| 2098 | em.emit_token("Hello, world!"); |
| 2099 | em.emit_finish(5); |
| 2100 | |
| 2101 | TEST_ASSERT(em.accumulated_text().find("Hello") != std::string::npos); |
| 2102 | TEST_ASSERT(em.reasoning_text().empty()); |
| 2103 | } |
| 2104 | |
| 2105 | TEST_CASE(ServerUnitFixture, test_emitter_tool_buffer_detection) { |
| 2106 | // When the emitter sees <tool_call>, it should buffer and parse tools. |
| 2107 | auto em = make_emitter(ApiFormat::OPENAI_CHAT, weather_tools()); |
| 2108 | em.emit_start(); |
no test coverage detected