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

Function test_from_iter_overflow

arrow-buffer/src/buffer/immutable.rs:1019–1022  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1017 #[test]
1018 #[should_panic(expected = "capacity overflow")]
1019 fn test_from_iter_overflow() {
1020 let iter_len = usize::MAX / std::mem::size_of::<u64>() + 1;
1021 let _ = Buffer::from_iter(std::iter::repeat_n(0_u64, iter_len));
1022 }
1023
1024 #[test]
1025 fn bit_slice_length_preserved() {

Callers

nothing calls this directly

Calls 1

from_iterFunction · 0.70

Tested by

no test coverage detected