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

Function test_invalid_truncated_array

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

Source from the content-addressed store, hash-verified

3104 #[test]
3105 #[should_panic(expected = "index out of bounds")]
3106 fn test_invalid_truncated_array() {
3107 let row: &[u8] = &[0x02];
3108 let binary_rows = BinaryArray::from(vec![row]);
3109
3110 let converter = RowConverter::new(vec![SortField::new(DataType::Utf8)]).unwrap();
3111 let parsed = converter.from_binary(binary_rows);
3112
3113 converter.convert_rows(parsed.iter()).unwrap();
3114 }
3115
3116 #[test]
3117 #[should_panic(expected = "rows were not produced by this RowConverter")]

Callers

nothing calls this directly

Calls 3

convert_rowsMethod · 0.80
from_binaryMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected