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

Function AssertConversion

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

Source from the content-addressed store, hash-verified

69
70template <typename T>
71void AssertConversion(StringConverter<T>* converter, const T& type, const std::string& s,
72 ConversionValueType<T> expected) {
73 ARROW_SCOPED_TRACE("When converting: '", s, "', expecting: ", expected);
74 ConversionValueType<T> out{};
75 ASSERT_TRUE(converter->Convert(type, s.data(), s.length(), &out));
76 AssertValueEquals(out, expected);
77}
78
79template <typename T>
80void AssertConversion(StringConverter<T>* converter, const std::string& s,

Callers 1

TESTFunction · 0.70

Calls 6

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

Tested by

no test coverage detected