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

Class AnthropicClientTest

tests/unit/anthropic_client_test.cpp:17–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace test {
16
17class AnthropicClientTest : public AnthropicTestFixture {
18 protected:
19 void SetUp() override {
20 AnthropicTestFixture::SetUp();
21 client_ = std::make_unique<ai::anthropic::AnthropicClient>(
22 kTestAnthropicApiKey, kTestAnthropicBaseUrl);
23 }
24
25 void TearDown() override {
26 client_.reset();
27 AnthropicTestFixture::TearDown();
28 }
29
30 std::unique_ptr<ai::anthropic::AnthropicClient> client_;
31};
32
33// Constructor and Configuration Tests
34TEST_F(AnthropicClientTest, ConstructorWithValidApiKey) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected