MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / prefill

Method prefill

server/test/test_server_unit.cpp:2097–2105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2095TEST_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
2105TEST_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();

Callers 1

test_adapter_guard_pathsFunction · 0.45

Calls 2

sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected