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

Function TEST_F

tests/unit/anthropic_stream_test.cpp:16–24  ·  view source on GitHub ↗

StreamOptions Tests

Source from the content-addressed store, hash-verified

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

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