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

Method TestInvalidUtf8

cpp/src/arrow/csv/converter_test.cc:253–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 }
252
253 void TestInvalidUtf8() {
254 auto type = TypeTraits<T>::type_singleton();
255 // Invalid UTF8 in column 0
256 AssertConversionError(type, {"ab,cdé\n", "\xff,gh\n"}, {0});
257
258 auto options = ConvertOptions::Defaults();
259 options.check_utf8 = false;
260 AssertConversion<T, std::string>(type, {"ab,cdé\n", ",\xffgh\n"},
261 {{"ab", ""}, {"cdé", "\xffgh"}}, options,
262 /*validate_full=*/false);
263 }
264};
265
266using StringTestTypes = ::testing::Types<StringType, LargeStringType>;

Callers 1

TYPED_TESTFunction · 0.80

Calls 3

AssertConversionErrorFunction · 0.85
type_singletonFunction · 0.50
DefaultsFunction · 0.50

Tested by

no test coverage detected