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

Function test_null_primitive

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

Source from the content-addressed store, hash-verified

1125
1126 #[test]
1127 fn test_null_primitive() {
1128 let array = new_null_array(&DataType::Int32, 9);
1129 let a = array.as_any().downcast_ref::<Int32Array>().unwrap();
1130 assert_eq!(a.len(), 9);
1131 for i in 0..9 {
1132 assert!(a.is_null(i));
1133 }
1134 }
1135
1136 #[test]
1137 fn test_null_struct() {

Callers

nothing calls this directly

Calls 2

new_null_arrayFunction · 0.85
as_anyMethod · 0.45

Tested by

no test coverage detected