| 311 | } |
| 312 | |
| 313 | nlohmann::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 |
| 324 | void TestAssertions::assertSuccess(const GenerateResult& result) { |
nothing calls this directly
no outgoing calls
no test coverage detected