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

Method errorScenarios

tests/utils/test_fixtures.cpp:241–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241std::vector<std::pair<int, std::string>> TestDataGenerator::errorScenarios() {
242 return {{400, "Bad request - invalid parameters"},
243 {401, "Unauthorized - invalid API key"},
244 {403, "Forbidden - insufficient permissions"},
245 {404, "Not found - invalid endpoint"},
246 {429, "Rate limit exceeded"},
247 {500, "Internal server error"},
248 {502, "Bad gateway"},
249 {503, "Service unavailable"}};
250}
251
252std::vector<std::string> TestDataGenerator::createStreamingEvents() {
253 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected