| 353 | } |
| 354 | |
| 355 | void TestAssertions::assertValidRequestJson(const nlohmann::json& request) { |
| 356 | EXPECT_TRUE(request.contains("model")) << "Request missing model field"; |
| 357 | EXPECT_TRUE(request.contains("messages")) << "Request missing messages field"; |
| 358 | EXPECT_TRUE(request["messages"].is_array()) << "Messages should be array"; |
| 359 | EXPECT_FALSE(request["messages"].empty()) |
| 360 | << "Messages array should not be empty"; |
| 361 | } |
| 362 | |
| 363 | void TestAssertions::assertHasRequiredFields( |
| 364 | const nlohmann::json& json, |
nothing calls this directly
no outgoing calls
no test coverage detected