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

Function test_primitive_array_creation

arrow-array/src/array/primitive_array.rs:2339–2344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2337
2338 #[test]
2339 fn test_primitive_array_creation() {
2340 let array1: Int8Array = [10_i8, 11, 12, 13, 14].into_iter().collect();
2341 let array2: Int8Array = [10_i8, 11, 12, 13, 14].into_iter().map(Some).collect();
2342
2343 assert_eq!(array1, array2);
2344 }
2345
2346 #[test]
2347 #[should_panic(

Callers

nothing calls this directly

Calls 2

collectMethod · 0.80
into_iterMethod · 0.45

Tested by

no test coverage detected