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

Function TEST_F

tests/unit/openai_embeddings_test.cpp:33–38  ·  view source on GitHub ↗

EmbeddingOptions Constructor and Validation Tests

Source from the content-addressed store, hash-verified

31
32// EmbeddingOptions Constructor and Validation Tests
33TEST_F(OpenAIEmbeddingsTest, EmbeddingOptionsDefaultConstructor) {
34 EmbeddingOptions options;
35
36 EXPECT_FALSE(options.is_valid());
37 EXPECT_FALSE(options.has_input());
38}
39
40TEST_F(OpenAIEmbeddingsTest, EmbeddingOptionsBasicConstructor) {
41 nlohmann::json input = "test text";

Callers

nothing calls this directly

Calls 5

has_inputMethod · 0.80
is_validMethod · 0.45
is_successMethod · 0.45
error_messageMethod · 0.45
embeddingsMethod · 0.45

Tested by

no test coverage detected