MCPcopy Create free account
hub / github.com/apache/arrow / CheckUnifyFailsInvalid

Method CheckUnifyFailsInvalid

cpp/src/arrow/type_test.cc:972–983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970 }
971
972 void CheckUnifyFailsInvalid(
973 const std::shared_ptr<Field>& field1, const std::shared_ptr<Field>& field2,
974 const Field::MergeOptions& options = Field::MergeOptions::Defaults(),
975 const std::string& match_message = "") {
976 ARROW_SCOPED_TRACE("options: ", options);
977 ARROW_SCOPED_TRACE("field2: ", field2->ToString());
978 ARROW_SCOPED_TRACE("field1: ", field1->ToString());
979 EXPECT_RAISES_WITH_MESSAGE_THAT(Invalid, ::testing::HasSubstr(match_message),
980 field1->MergeWith(field2, options));
981 EXPECT_RAISES_WITH_MESSAGE_THAT(Invalid, ::testing::HasSubstr(match_message),
982 field2->MergeWith(field1, options));
983 }
984
985 void CheckUnifyFailsTypeError(
986 const std::shared_ptr<Field>& field1, const std::shared_ptr<Field>& field2,

Callers

nothing calls this directly

Calls 4

MergeWithMethod · 0.80
DefaultsFunction · 0.70
fieldFunction · 0.70
ToStringMethod · 0.45

Tested by

no test coverage detected