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

Function test_invalid_empty_array

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

Source from the content-addressed store, hash-verified

3080 #[test]
3081 #[should_panic(expected = "index out of bounds")]
3082 fn test_invalid_empty_array() {
3083 let row: &[u8] = &[];
3084 let binary_rows = BinaryArray::from(vec![row]);
3085
3086 let converter = RowConverter::new(vec![SortField::new(DataType::Utf8)]).unwrap();
3087 let parsed = converter.from_binary(binary_rows);
3088
3089 converter.convert_rows(parsed.iter()).unwrap();
3090 }
3091
3092 #[test]
3093 #[should_panic(expected = "index out of bounds")]

Callers

nothing calls this directly

Calls 3

convert_rowsMethod · 0.80
from_binaryMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected