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

Class OpenAIClientTest

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected