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

Function test_downcast_array

arrow-array/src/array/mod.rs:1423–1431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1421
1422 #[test]
1423 fn test_downcast_array() {
1424 let array: Int32Array = vec![1, 2, 3].into_iter().map(Some).collect();
1425
1426 let boxed: ArrayRef = Arc::new(array);
1427 let array: Int32Array = downcast_array(&boxed);
1428
1429 let expected: Int32Array = vec![1, 2, 3].into_iter().map(Some).collect();
1430 assert_eq!(array, expected);
1431 }
1432}

Callers

nothing calls this directly

Calls 3

downcast_arrayFunction · 0.85
collectMethod · 0.80
into_iterMethod · 0.45

Tested by

no test coverage detected