MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_invalid_empty

Function test_invalid_empty

arrow-row/src/lib.rs:3070–3078  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3068 #[test]
3069 #[should_panic(expected = "index out of bounds")]
3070 fn test_invalid_empty() {
3071 let binary_row: &[u8] = &[];
3072
3073 let converter = RowConverter::new(vec![SortField::new(DataType::Utf8)]).unwrap();
3074 let parser = converter.parser();
3075 let utf8_row = parser.parse(binary_row.as_ref());
3076
3077 converter.convert_rows(std::iter::once(utf8_row)).unwrap();
3078 }
3079
3080 #[test]
3081 #[should_panic(expected = "index out of bounds")]

Callers

nothing calls this directly

Calls 4

parserMethod · 0.80
convert_rowsMethod · 0.80
parseMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected