()
| 3054 | #[test] |
| 3055 | #[should_panic(expected = "Encountered non UTF-8 data")] |
| 3056 | fn test_invalid_utf8_array() { |
| 3057 | let converter = RowConverter::new(vec![SortField::new(DataType::Binary)]).unwrap(); |
| 3058 | let array = Arc::new(BinaryArray::from_iter_values([&[0xFF]])) as _; |
| 3059 | let rows = converter.convert_columns(&[array]).unwrap(); |
| 3060 | let binary_rows = rows.try_into_binary().expect("known-small rows"); |
| 3061 | |
| 3062 | let converter = RowConverter::new(vec![SortField::new(DataType::Utf8)]).unwrap(); |
| 3063 | let parsed = converter.from_binary(binary_rows); |
| 3064 | |
| 3065 | converter.convert_rows(parsed.iter()).unwrap(); |
| 3066 | } |
| 3067 | |
| 3068 | #[test] |
| 3069 | #[should_panic(expected = "index out of bounds")] |
nothing calls this directly
no test coverage detected