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

Method createMalformedResponse

tests/utils/test_fixtures.cpp:313–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313nlohmann::json TestDataGenerator::createMalformedResponse() {
314 return nlohmann::json{
315 {"id", 123}, // Should be string
316 {"choices", "not_an_array"}, // Should be array
317 {"usage",
318 {
319 {"prompt_tokens", "not_a_number"} // Should be number
320 }}};
321}
322
323// TestAssertions implementation
324void TestAssertions::assertSuccess(const GenerateResult& result) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected