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

Function test_empty_variable_sized

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

Source from the content-addressed store, hash-verified

1098
1099 #[test]
1100 fn test_empty_variable_sized() {
1101 let array = new_empty_array(&DataType::Utf8);
1102 let a = array.as_any().downcast_ref::<StringArray>().unwrap();
1103 assert_eq!(a.len(), 0);
1104 assert_eq!(a.value_offsets()[0], 0i32);
1105 }
1106
1107 #[test]
1108 fn test_empty_list_primitive() {

Callers

nothing calls this directly

Calls 2

new_empty_arrayFunction · 0.85
as_anyMethod · 0.45

Tested by

no test coverage detected