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

Function test_null_variable_sized

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

Source from the content-addressed store, hash-verified

1153
1154 #[test]
1155 fn test_null_variable_sized() {
1156 let array = new_null_array(&DataType::Utf8, 9);
1157 let a = array.as_any().downcast_ref::<StringArray>().unwrap();
1158 assert_eq!(a.len(), 9);
1159 assert_eq!(a.value_offsets()[9], 0i32);
1160 for i in 0..9 {
1161 assert!(a.is_null(i));
1162 }
1163 }
1164
1165 #[test]
1166 fn test_null_list_primitive() {

Callers

nothing calls this directly

Calls 2

new_null_arrayFunction · 0.85
as_anyMethod · 0.45

Tested by

no test coverage detected