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

Function test_length_overflow

arrow-buffer/src/buffer/scalar.rs:335–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333 #[test]
334 #[should_panic(expected = "offset overflow")]
335 fn test_length_overflow() {
336 let buffer = Buffer::from_iter([0_i32, 1, 2]);
337 ScalarBuffer::<i32>::new(buffer, usize::MAX, 1);
338 }
339
340 #[test]
341 #[should_panic(expected = "offset overflow")]

Callers

nothing calls this directly

Calls 1

from_iterFunction · 0.70

Tested by

no test coverage detected