| 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 | |
| 266 | using StringTestTypes = ::testing::Types<StringType, LargeStringType>; |
no test coverage detected