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

Function test_offset_buffer_empty

parquet/src/arrow/buffer/offset_buffer.rs:209–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207
208 #[test]
209 fn test_offset_buffer_empty() {
210 let buffer = OffsetBuffer::<i32>::with_capacity(0);
211 let array = buffer.into_array(None, ArrowType::Utf8);
212 let strings = array.as_any().downcast_ref::<StringArray>().unwrap();
213 assert_eq!(strings.len(), 0);
214 }
215
216 #[test]
217 fn test_offset_buffer_append() {

Callers

nothing calls this directly

Calls 2

into_arrayMethod · 0.45
as_anyMethod · 0.45

Tested by

no test coverage detected