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

Function test_from_trusted_len_iter

arrow-buffer/src/buffer/mutable.rs:1301–1306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1299
1300 #[test]
1301 fn test_from_trusted_len_iter() {
1302 let iter = vec![1u32, 2].into_iter();
1303 let buf = unsafe { MutableBuffer::from_trusted_len_iter(iter) };
1304 assert_eq!(8, buf.len());
1305 assert_eq!(&[1u8, 0, 0, 0, 2, 0, 0, 0], buf.as_slice());
1306 }
1307
1308 #[test]
1309 fn test_mutable_reserve() {

Callers

nothing calls this directly

Calls 1

into_iterMethod · 0.45

Tested by

no test coverage detected