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

Function AssertConversionFails

cpp/src/arrow/util/value_parsing_test.cc:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101template <typename T>
102void AssertConversionFails(StringConverter<T>* converter, const T& type,
103 const std::string& s) {
104 ConversionValueType<T> out{};
105 ASSERT_FALSE(converter->Convert(type, s.data(), s.length(), &out))
106 << "Conversion should have failed for '" << s << "' (returned " << out << ")";
107}
108
109template <typename T>
110void AssertConversionFails(StringConverter<T>* converter, const std::string& s) {

Callers 2

TESTFunction · 0.85
AssertInvalidTimesFunction · 0.85

Calls 5

ParseValueFunction · 0.85
type_singletonFunction · 0.50
ConvertMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected