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

Function test_from_array_data_validation

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

Source from the content-addressed store, hash-verified

2356 #[test]
2357 #[should_panic(expected = "PrimitiveArray expected data type Int64 got Int32")]
2358 fn test_from_array_data_validation() {
2359 let foo = PrimitiveArray::<Int32Type>::from_iter([1, 2, 3]);
2360 let _ = PrimitiveArray::<Int64Type>::from(foo.into_data());
2361 }
2362
2363 #[test]
2364 fn test_decimal32() {

Callers

nothing calls this directly

Calls 2

from_iterFunction · 0.50
into_dataMethod · 0.45

Tested by

no test coverage detected