| 15 | namespace test { |
| 16 | |
| 17 | class 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 |
| 34 | TEST_F(OpenAIClientTest, ConstructorWithValidApiKey) { |
nothing calls this directly
no outgoing calls
no test coverage detected