| 361 | } |
| 362 | |
| 363 | void TestAssertions::assertHasRequiredFields( |
| 364 | const nlohmann::json& json, |
| 365 | const std::vector<std::string>& fields) { |
| 366 | for (const auto& field : fields) { |
| 367 | EXPECT_TRUE(json.contains(field)) |
| 368 | << "JSON missing required field: " << field; |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | } // namespace test |
| 373 | } // namespace ai |
nothing calls this directly
no outgoing calls
no test coverage detected