MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / TEST_F

Function TEST_F

tests/unit/openai_stream_test.cpp:16–23  ·  view source on GitHub ↗

StreamOptions Tests

Source from the content-addressed store, hash-verified

14
15// StreamOptions Tests
16TEST_F(OpenAIStreamTest, StreamOptionsBasicConstructor) {
17 StreamOptions options(GenerateOptions("gpt-4o", "Hello, world!"));
18
19 EXPECT_EQ(options.model, "gpt-4o");
20 EXPECT_EQ(options.prompt, "Hello, world!");
21 EXPECT_TRUE(options.system.empty());
22 EXPECT_TRUE(options.messages.empty());
23}
24
25TEST_F(OpenAIStreamTest, StreamOptionsWithSystemPrompt) {
26 StreamOptions options(

Callers

nothing calls this directly

Calls 8

GenerateOptionsClass · 0.85
has_messagesMethod · 0.80
is_validMethod · 0.45
setShouldFailMethod · 0.45
stream_textMethod · 0.45
getCallCountMethod · 0.45
setShouldTimeoutMethod · 0.45
getLastStreamOptionsMethod · 0.45

Tested by

no test coverage detected