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

Method assertHasRequiredFields

tests/utils/test_fixtures.cpp:363–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected